-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Closed
Description
Bug Report
What is the current behavior?
Jest reports "No tests found" even when there are tests
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
.
Example repo.
What is the expected behavior?
Tests in src/node_modules
are run
Run Jest again with --debug
and provide the full configuration it prints. Please mention your node and npm version and operating system.
jest version = 16.0.2
test framework = jasmine2
config = {
"moduleFileExtensions": [
"jsx",
"js",
"json"
],
"moduleNameMapper": [
[
"^.+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$",
"/Users/justinfalcone/work/modernserf/test-jest/config/jest/FileStub.js"
],
[
"^.+\\.css$",
"/Users/justinfalcone/work/modernserf/test-jest/config/jest/CSSStub.js"
]
],
"setupFiles": [
"/Users/justinfalcone/work/modernserf/test-jest/config/polyfills.js"
],
"testPathIgnorePatterns": [
"/Users/justinfalcone/work/modernserf/test-jest/(build|config|node_modules)/"
],
"preprocessorIgnorePatterns": [
"/Users/justinfalcone/work/modernserf/test-jest/node_modules"
],
"testEnvironment": "/Users/justinfalcone/work/modernserf/test-jest/node_modules/jest-environment-jsdom/build/index.js",
"rootDir": "/Users/justinfalcone/work/modernserf/test-jest",
"name": "-Users-justinfalcone-work-modernserf-test-jest",
"testRunner": "/Users/justinfalcone/work/modernserf/test-jest/node_modules/jest-jasmine2/build/index.js",
"scriptPreprocessor": "/Users/justinfalcone/work/modernserf/test-jest/node_modules/babel-jest/build/index.js",
"usesBabelJest": true,
"automock": false,
"bail": false,
"browser": false,
"cacheDirectory": "/var/folders/q8/zlh7b1ms7fg2r3cqx6sgbrrr0000gn/T/jest",
"clearMocks": false,
"coveragePathIgnorePatterns": [
"/node_modules/"
],
"coverageReporters": [
"json",
"text",
"lcov",
"clover"
],
"globals": {},
"haste": {
"providesModuleNodeModules": []
},
"mocksPattern": "__mocks__",
"moduleDirectories": [
"node_modules"
],
"modulePathIgnorePatterns": [],
"noStackTrace": false,
"notify": false,
"preset": null,
"resetModules": false,
"testPathDirs": [
"/Users/justinfalcone/work/modernserf/test-jest"
],
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.jsx?$",
"testURL": "about:blank",
"timers": "real",
"useStderr": false,
"verbose": null,
"watch": false,
"cache": true,
"watchman": true,
"testcheckOptions": {
"times": 100,
"maxSize": 200
}
}
No tests found
12 files checked.
testPathDirs: /Users/justinfalcone/work/modernserf/test-jest - 12 matches
testRegex: (/__tests__/.*|\.(test|spec))\.jsx?$ - 0 matches
testPathIgnorePatterns: /Users/justinfalcone/work/modernserf/test-jest/(build|config|node_modules)/ - 5 matches
Node v6.5.0
npm v3.10.3
See facebook/create-react-app#1042 and facebook/create-react-app#607 for related issues.
EvHaus, robolivable, skyh, penx, cecilemuller and 8 more
Metadata
Metadata
Assignees
Labels
No labels