Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@focusaurus
Copy link
Contributor

Impact: none
Type: test

Issue

Trying to run meteor npm run test:file path/to/my/file.test.js with linux host OS inside a docker container was crashing with this error:

node@b683c6336f32:/opt/reaction/src$ meteor npm run test:file -- $f

fs.js:1384
    throw error;
    ^

Error: watch /opt/reaction/src/node_modules/faker/lib/locales/en_IND/name ENOSPC

Spencer found jest issue 3254 which indicates its a problem with filesystem watching.

Solution

This configuration seems to avoid the problem and allow the command to run properly.

Testing

  1. meteor npm run test:file path/to/my/file.test.js
  • If it crashes, the problem still exists, if the test runs and you see the jest watch menu displayed, the problem is solved.

Avoids ENOSPC error on docker/linux
jestjs/jest#3254 (comment)

Signed-off-by: Peter Lyons <[email protected]>
@focusaurus focusaurus merged commit 80ca340 into develop Jan 26, 2019
@focusaurus focusaurus deleted the tests-pete-jest-watch-enospc branch January 26, 2019 14:53
@jeffcorpuz jeffcorpuz mentioned this pull request Mar 1, 2019
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

Successfully merging this pull request may close these issues.

3 participants