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

Testing configuration runs slow on Windows 10 #21

Open
SimeonRolev opened this issue Oct 14, 2020 · 7 comments
Open

Testing configuration runs slow on Windows 10 #21

SimeonRolev opened this issue Oct 14, 2020 · 7 comments

Comments

@SimeonRolev
Copy link

Hi,

I purchased the course and didn't change any of the setup, but the test run really slow (3-6s). I use Windows 10 and saw that someone else filed this issue: jestjs/jest#7631. I commented there as well describing my issue in more details, but I don't see much of an activity towards resolving it. Is there a fix that you know of?

Thanks!

@SimeonRolev SimeonRolev changed the title Slow jest runs Testing configuration runs slow on Windows 10 Oct 14, 2020
@kentcdodds
Copy link
Owner

I'm afraid I have no more to offer than what is suggested in that issue. Did you try installing watchman?

@nasreddineskandrani
Copy link

nasreddineskandrani commented Oct 15, 2020

@SimeonRolev can you try to run jest directly from inside the repo.

"test": "kcd-scripts test",

yarn test is calling kcd-scripts maybe something inside is creating this behavior?

i ll look at it again when i find time

@kentcdodds
Copy link
Owner

kcd-scripts has a few nice things built-in, but it's unlikely to cause this problem. However, it's possible. You should be able to run npx jest and it'll run all the tests, you can run npx jest --watch to run in watch mode.

@SimeonRolev
Copy link
Author

SimeonRolev commented Oct 21, 2020

image

npx jest --watch -> p -> this file. Hit enter multiple times, because the first run is always slow.

I got a dual boot with Ubuntu, so there it is as well:
Screenshot from 2020-10-21 13-29-27

@kentcdodds
Copy link
Owner

Odd. Unfortunately I don't have the bandwidth to look into this.

@nasreddineskandrani
Copy link

I'll look at it during next week. I am interested to learn how to debug well jest anyway...

@nasreddineskandrani
Copy link

a little busy :P i'll take the time to check it during my vacations in first week of january.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants