GithubHelp home page GithubHelp logo

Comments (8)

sophiebits avatar sophiebits commented on April 17, 2024

We might be able to fix this by using graceful-fs or something of that sort.

from jest.

jeffmo avatar jeffmo commented on April 17, 2024

@luismreis: I haven't seen this -- mind posting the errors that are thrown? If they point to specific uses of fs, graceful-fs might be a good solution as @spicyj points out

from jest.

jeffmo avatar jeffmo commented on April 17, 2024

Just pushed out dbd9eb2 which switches things from using fs to graceful-fs.

Unfortunately this one is a bit hard to repro, so it's tricky for me to verify the fix -- mind confirming that it solves your scenario?

from jest.

ide avatar ide commented on April 17, 2024

I'm not able to repro but I was getting this output with jest-cli 0.1.15 FWIW:

Found 2 matching tests...
Error reading file: `/Users/ide/code/node_modules/jest-cli/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/hoek/package.json`

/Users/ide/code/node_modules/jest-cli/node_modules/node-haste/lib/loader/ResourceLoader.js:88
      throw err;
            ^
Error: EMFILE, open '/Users/ide/code/node_modules/jest-cli/node_modules/jsdom/node_modules/request/node_modules/hawk/node_modules/hoek/package.json'

Adjusting ulimit fixed it though.

from jest.

ide avatar ide commented on April 17, 2024

With the master branch (npm install facebook/jest):

Found 2 matching tests...
Error reading file: `/Users/ide/code/node_modules/gulp-insert/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/package.json`

/Users/ide/code/node_modules/jest-cli/node_modules/node-haste/lib/loader/ResourceLoader.js:88
      throw err;
            ^
Error: UNKNOWN, open '/Users/ide/code/node_modules/gulp-insert/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/package.json'

from jest.

 avatar commented on April 17, 2024

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

from jest.

cpojer avatar cpojer commented on April 17, 2024

I take it this is not an issue any longer?

from jest.

github-actions avatar github-actions commented on April 17, 2024

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.

from jest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.