{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2864","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2864/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2864/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2864/events","html_url":"https://github.com/facebook/jest/issues/2864","id":206996823,"number":2864,"title":"New clone, `npm install` fails","user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-02-11T18:01:02Z","updated_at":"2017-02-25T11:14:47Z","closed_at":"2017-02-25T11:14:47Z","body":"When I clone the repo, and run `npm install` (which failed for me right off the bat because I didn't have yarn installed, so, after I installed yarn), it fails with `error No registered module found called \"eslint-plugin-jest\".`. Manually running `npm install eslint-plugin-jest` doesn't change anything such that `npm install` or `npm test` succeeds. `yarn install` fails with the same error as `npm install`. `npm test` fails unable to find `eslint-plugin-jest`, and when it's manually installed (not sure why it's not in \"devDependencies\"), I get:\r\n```sh\r\n$ npm test\r\n\r\n> @ test $PWD\r\n> yarn run typecheck && yarn run lint && yarn run build && yarn run jest && yarn run test-examples\r\n\r\nyarn run v0.19.1\r\n$ flow check \r\nFound 0 errors\r\n✨  Done in 6.05s.\r\nyarn run v0.19.1\r\n$ eslint . --cache \r\n$PWD/packages/eslint-config-fb-strict/index.js:\r\n\tEnvironment key \"jest/globals\" is unknown\r\n\r\nReferenced from: $PWD/.eslintrc\r\nError: $PWD/packages/eslint-config-fb-strict/index.js:\r\n\tEnvironment key \"jest/globals\" is unknown\r\n\r\nReferenced from: $PWD/.eslintrc\r\n    at Object.keys.forEach.env ($PWD/node_modules/eslint/lib/config/config-validator.js:138:23)\r\n    at Array.forEach (native)\r\n    at validateEnvironment ($PWD/node_modules/eslint/lib/config/config-validator.js:131:34)\r\n    at Object.validate ($PWD/node_modules/eslint/lib/config/config-validator.js:160:5)\r\n    at load ($PWD/node_modules/eslint/lib/config/config-file.js:522:19)\r\n    at configExtends.reduceRight ($PWD/node_modules/eslint/lib/config/config-file.js:391:36)\r\n    at Array.reduceRight (native)\r\n    at applyExtends ($PWD/node_modules/eslint/lib/config/config-file.js:362:28)\r\n    at Object.load ($PWD/node_modules/eslint/lib/config/config-file.js:529:22)\r\n    at loadConfig ($PWD/node_modules/eslint/lib/config.js:63:33)\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\nnpm ERR! Test failed.  See above for more details.\r\n```\r\n\r\n`yarn run typecheck && yarn run build && yarn run jest && yarn run test-examples` works (when I remove `yarn run lint`), but at that point tests don't pass on master, and fail with:\r\n```sh\r\n FAIL  packages/jest-util/src/__tests__/FakeTimers-test.js\r\n  ● FakeTimers › runAllTimers › warns when trying to advance timers while real timers are used\r\n\r\n    expect(value).toMatchSnapshot()\r\n    \r\n    Received value does not match stored snapshot 1.\r\n    \r\n    - Snapshot\r\n    + Received\r\n    \r\n     \"A function to advance timers was called but the timers API is not mocked with fake timers. Call `jest.useFakeTimers()` in this test or enable fake timers globally by setting `\"timers\": \"fake\"` in the configuration file. This warning is likely a result of a default configuration change in Jest 15.\r\n     \r\n    -Release Blog Post: https://facebook.github.io/jest/blog/2016/09/01/jest-15.html\"\r\n    +Release Blog Post: https://facebook.github.io/jest/blog/2016/09/01/jest-15.html\r\n    +Stack Trace:\r\n    +      Error\"\r\n      \r\n      at Object.it (packages/jest-util/src/__tests__/FakeTimers-test.js:329:7)\r\n```\r\n\r\nHow can I get to a state where `npm install && npm test` Just Works on a fresh clone?"}}
{"actor":{"display_login":"cpojer"}}