{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/2145","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/2145/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/2145/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/2145/events","html_url":"https://github.com/facebook/jest/issues/2145","id":190807849,"number":2145,"title":"Jest not running tests in src/node_modules","user":{"login":"modernserf","id":938722,"avatar_url":"https://avatars.githubusercontent.com/u/938722?v=3","gravatar_id":"","url":"https://api.github.com/users/modernserf","html_url":"https://github.com/modernserf","followers_url":"https://api.github.com/users/modernserf/followers","following_url":"https://api.github.com/users/modernserf/following{/other_user}","gists_url":"https://api.github.com/users/modernserf/gists{/gist_id}","starred_url":"https://api.github.com/users/modernserf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modernserf/subscriptions","organizations_url":"https://api.github.com/users/modernserf/orgs","repos_url":"https://api.github.com/users/modernserf/repos","events_url":"https://api.github.com/users/modernserf/events{/privacy}","received_events_url":"https://api.github.com/users/modernserf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-11-21T19:08:28Z","updated_at":"2016-11-29T18:47:22Z","closed_at":"2016-11-29T05:30:43Z","body":"## Bug Report\r\n\r\n**What is the current behavior?**\r\nJest reports \"No tests found\" even when there are tests\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal repository on GitHub that we can `npm install` and `npm test`.**\r\n[Example repo](https://github.com/modernserf/test-jest).\r\n\r\n**What is the expected behavior?**\r\nTests in `src/node_modules` are run\r\n\r\n**Run Jest again with `--debug` and provide the full configuration it prints. Please mention your node and npm version and operating system.**\r\n\r\n```\r\njest version = 16.0.2\r\ntest framework = jasmine2\r\nconfig = {\r\n  \"moduleFileExtensions\": [\r\n    \"jsx\",\r\n    \"js\",\r\n    \"json\"\r\n  ],\r\n  \"moduleNameMapper\": [\r\n    [\r\n      \"^.+\\\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$\",\r\n      \"/Users/justinfalcone/work/modernserf/test-jest/config/jest/FileStub.js\"\r\n    ],\r\n    [\r\n      \"^.+\\\\.css$\",\r\n      \"/Users/justinfalcone/work/modernserf/test-jest/config/jest/CSSStub.js\"\r\n    ]\r\n  ],\r\n  \"setupFiles\": [\r\n    \"/Users/justinfalcone/work/modernserf/test-jest/config/polyfills.js\"\r\n  ],\r\n  \"testPathIgnorePatterns\": [\r\n    \"/Users/justinfalcone/work/modernserf/test-jest/(build|config|node_modules)/\"\r\n  ],\r\n  \"preprocessorIgnorePatterns\": [\r\n    \"/Users/justinfalcone/work/modernserf/test-jest/node_modules\"\r\n  ],\r\n  \"testEnvironment\": \"/Users/justinfalcone/work/modernserf/test-jest/node_modules/jest-environment-jsdom/build/index.js\",\r\n  \"rootDir\": \"/Users/justinfalcone/work/modernserf/test-jest\",\r\n  \"name\": \"-Users-justinfalcone-work-modernserf-test-jest\",\r\n  \"testRunner\": \"/Users/justinfalcone/work/modernserf/test-jest/node_modules/jest-jasmine2/build/index.js\",\r\n  \"scriptPreprocessor\": \"/Users/justinfalcone/work/modernserf/test-jest/node_modules/babel-jest/build/index.js\",\r\n  \"usesBabelJest\": true,\r\n  \"automock\": false,\r\n  \"bail\": false,\r\n  \"browser\": false,\r\n  \"cacheDirectory\": \"/var/folders/q8/zlh7b1ms7fg2r3cqx6sgbrrr0000gn/T/jest\",\r\n  \"clearMocks\": false,\r\n  \"coveragePathIgnorePatterns\": [\r\n    \"/node_modules/\"\r\n  ],\r\n  \"coverageReporters\": [\r\n    \"json\",\r\n    \"text\",\r\n    \"lcov\",\r\n    \"clover\"\r\n  ],\r\n  \"globals\": {},\r\n  \"haste\": {\r\n    \"providesModuleNodeModules\": []\r\n  },\r\n  \"mocksPattern\": \"__mocks__\",\r\n  \"moduleDirectories\": [\r\n    \"node_modules\"\r\n  ],\r\n  \"modulePathIgnorePatterns\": [],\r\n  \"noStackTrace\": false,\r\n  \"notify\": false,\r\n  \"preset\": null,\r\n  \"resetModules\": false,\r\n  \"testPathDirs\": [\r\n    \"/Users/justinfalcone/work/modernserf/test-jest\"\r\n  ],\r\n  \"testRegex\": \"(/__tests__/.*|\\\\.(test|spec))\\\\.jsx?$\",\r\n  \"testURL\": \"about:blank\",\r\n  \"timers\": \"real\",\r\n  \"useStderr\": false,\r\n  \"verbose\": null,\r\n  \"watch\": false,\r\n  \"cache\": true,\r\n  \"watchman\": true,\r\n  \"testcheckOptions\": {\r\n    \"times\": 100,\r\n    \"maxSize\": 200\r\n  }\r\n}\r\nNo tests found\r\n  12 files checked.\r\n  testPathDirs: /Users/justinfalcone/work/modernserf/test-jest - 12 matches\r\n  testRegex: (/__tests__/.*|\\.(test|spec))\\.jsx?$ - 0 matches\r\n  testPathIgnorePatterns: /Users/justinfalcone/work/modernserf/test-jest/(build|config|node_modules)/ - 5 matches\r\n```\r\n\r\nNode v6.5.0\r\nnpm v3.10.3\r\n\r\nSee https://github.com/facebookincubator/create-react-app/issues/1042 and https://github.com/facebookincubator/create-react-app/issues/607 for related issues.\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/263660792","html_url":"https://github.com/facebook/jest/issues/2145#issuecomment-263660792","issue_url":"https://api.github.com/repos/facebook/jest/issues/2145","id":263660792,"user":{"login":"modernserf","id":938722,"avatar_url":"https://avatars.githubusercontent.com/u/938722?v=3","gravatar_id":"","url":"https://api.github.com/users/modernserf","html_url":"https://github.com/modernserf","followers_url":"https://api.github.com/users/modernserf/followers","following_url":"https://api.github.com/users/modernserf/following{/other_user}","gists_url":"https://api.github.com/users/modernserf/gists{/gist_id}","starred_url":"https://api.github.com/users/modernserf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modernserf/subscriptions","organizations_url":"https://api.github.com/users/modernserf/orgs","repos_url":"https://api.github.com/users/modernserf/repos","events_url":"https://api.github.com/users/modernserf/events{/privacy}","received_events_url":"https://api.github.com/users/modernserf/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T18:47:22Z","updated_at":"2016-11-29T18:47:22Z","body":"Thanks! -- the haste config works for now, as does manually setting `retainAllFiles`, though when I was testing this earlier it seemed like that was generating a lot of warnings? I'll try this out again and report back.\r\n\r\nRegarding BuzzFeed: Each team has a fair amount of control over their own stack, but many of the newer internal tools (including the ones I work on) are using React/Jest/Webpack/Babel; some of our prototypes are even built with create-react-app."}}
{"actor":{"display_login":"modernserf"}}