Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jest as a daemon #5950

Closed
aaronjensen opened this issue Apr 9, 2018 · 6 comments
Closed

Jest as a daemon #5950

aaronjensen opened this issue Apr 9, 2018 · 6 comments

Comments

@aaronjensen
Copy link
Contributor

Do you want to request a feature or report a bug?

Request a feature.

Hi, it'd be great if jest had some sort of daemon mode that would allow it to run and accept filenames to run tests for and emit results via json.

The use case for this is for integration into text editors like https://github.com/jojojames/flycheck-jest

At the moment, it seems we just start a new jest process with the specific file we want to test which incurs some amount of startup time.

I apologize if there's already a good way to do this, I looked around and wasn't able to find one.

Thanks!

@SimenB
Copy link
Member

SimenB commented Apr 9, 2018

sounds like watch mode and setting pattern through a signal or something instead of pressing p and entering one.

@rogeliog thoughts on this as a watch plugin? What (if any) changes would need to happen in jest to handle it?

@SimenB
Copy link
Member

SimenB commented Sep 30, 2018

@thymikee @rickhanlonii thoughts?

@rickhanlonii
Copy link
Member

Yeah I think this could be done in user land and doesn't need to be in core

Can re-open if there's a compelling reason to add to core 👍

@NagRock
Copy link

NagRock commented Jul 16, 2019

@SimenB, @richardscarrott this would be great to speed up IDE tests duration. Now for example in IntelliJ when we run test, startup takes about 2seconds and test just for example 20ms.
With running deamon in the background, jest would be ready to run tests and without node / jest startup tests duration will be reduced about 2second.

@SimenB
Copy link
Member

SimenB commented Jul 17, 2019

Yeah, we definitely want this at some point. Current status: #5048 (comment)

(so a first iteration will have a programmatic API, and we can follow up with some way of starting jest as a daemon after that)

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants