Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Why is Jest's version hard coded to "20.0.4"? #446

Open
roneesh opened this issue Nov 9, 2018 · 1 comment
Open

Why is Jest's version hard coded to "20.0.4"? #446

roneesh opened this issue Nov 9, 2018 · 1 comment

Comments

@roneesh
Copy link

roneesh commented Nov 9, 2018

I'm updating my application right now and debugging some dependency issues. I just updated to Typescript 3 and updated react-scripts-ts to "3.1.0".

I'm currently getting an error when I run yarn test, which itself runs "react-scripts-ts test --env=jsdom --reporters default"

The error is:

Error: EMFILE: too many open files, watch
    at FSEvent.FSWatcher._handle.onchange (internal/fs/watchers.js:123:28)

This is a totally new issue for me, and so I am Googling around for how to handle it. I came upon this Create React App issue which explains it: facebook/create-react-app#4540

In the issue they suggest to install Facebook's "watchman" to enable arbitrarily large amounts of files to be watched. But they also say that later versions of Jest don't need this.

I suspect that by hard coding to Jest 20.0.4 I am unable to get a fix for this particular issue? Is there any reason Jest is hardcoded at this version? Please note that I currently unable to determine if the fix for this issue was in 20.0.4, so it might be that this is a red herring. Regardless, I do feel that the question is still valid since now the latest react-scripts is 3 versions behind.

Is this an issue where I could help by doing a PR to update Jest? Or would you only update Jest's version as part of a larger release?

@insidewhy
Copy link

@roneesh I tried to use a version past 20 and got an error message about a teardown function not being defined. I don't know why but we're stuck with jest 20 until that is solved.

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

No branches or pull requests

2 participants