RE: new project yarn test failed (error message:This promise must be present when running with -o.)
See original GitHub issueIs this a bug report?
Maybe.
Environment
Environment: OS: macOS High Sierra 10.13.2 Node: 6.9.1 Yarn: 1.3.2 npm: 4.1.1 Watchman: 4.9.0 Xcode: Xcode 9.2 Build version 9C40b Android Studio: 2.2 AI-145.3537739
Packages: (wanted => installed) react: 16.0.0 => 16.0.0 react-native: 0.50.3 => 0.50.3
Steps to Reproduce
- create-react-native-app foo 2.cd foo 3.yarn test
Expected Behavior
The default App.test.js is running and show all passed.
Actual Behavior
error message:
Determining test suites to run…Error: This promise must be present when running with -o. at /Users/developer/Desktop/code/es6/rn/learnTest/node_modules/jest-cli/build/search_source.js:202:17
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
yarn test: all tests passed but returned "error Command failed ...
Answer: the error code was due to line coverage being below the value that I defined (90%). It already told me line coverage...
Read more >@sa11y/jest - npm
Start using @sa11y/jest in your project by running `npm i ... APIs need to be registered with Jest before they can be used...
Read more >Troubleshooting Guide - Pulumi
This guide covers common troubleshooting techniques when using Pulumi, such as tracing, manually editing deployments, and resolving common errors.
Read more >Testing | RedwoodJS Docs
But tests are here to stay, and maybe Redwood can change some opinions ... Try running that code again and you should see...
Read more >jest | Yarn - Package Manager
Works out of the box for any React project. Instant Feedback: Failed tests run first. Fast interactive mode can switch between running all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
But If it is react project, steps below 1.create-react-app foo 2.cd foo 3.yarn test
The default App.test.js is working and show all passed.
Anyone have some idea abt it?
This appears to have been fixed in 0.53.3