-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Description
npm run test
fails with the error this promise must be present when running with -o.
1-2 sentences describing the problem you're having or the feature you'd like to request
Expected Behavior
What action did you perform, and what did you expect to happen?
I expected tests to run.
Observed Behavior
What actually happened when you performed the above actions?
The tests failed.
If there's an error message, please paste the full terminal output and error message in this code block:
Determining test suites to run...Error: This promise must be present when running with -o.
at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:202:17
at Generator.next (<anonymous>)
at step (/Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:19:362)
at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:19:592
at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:19:273
at SearchSource.getTestPaths (/Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/search_source.js:216:10)
at /Users/chris/git/apps/FirstProject/node_modules/jest/node_modules/jest-cli/build/run_jest.js:44:29
at Generator.next (<anonymous>)
Environment
Mac v 10.12.6
Node v 7.10
Please run these commands in the project folder and fill in their results:
npm ls react-native-scripts
:
[email protected]npm ls react-native
:
[email protected]npm ls expo
:node -v
:npm -v
:
v4.2.0yarn --version
:watchman version
:
4.9.0
Also specify:
- Operating system:
- Phone/emulator/simulator & version:
Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you're reporting.
Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.