Create-react-app Tests not running
See original GitHub issueI’m using version 0.9.3 of react-scrips in CRA, which relies on Jest v18.1.
I run the tests using npm test
(or npm run test
), and the CLI works perfectly.
However, the extension doesn’t seem to be recognizing that the tests are being run. I have empty green circles next to all of them, and, upon highlight, they all display: Test has not run yet, due to Jest only running tests related to changes.
Yet the tests are definitely running. I’m not sure what the problem is, since opening VSCode DevTools doesn’t show any errors.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:7 (3 by maintainers)
Top Results From Across the Web
create react app tests not running without any changes to the ...
Made no changes and ran the tests. The tests failed straight away. Error: Failed to initialize watch plugin "node_modules/jest-watch-typeahead/ ...
Read more >Running Tests | Create React App
Create React App uses Jest as its test runner. ... This means that the tests always run in a Node environment and not...
Read more >Unit tests are not executed · Issue #2889 - GitHub
js file, created when running the create-react-app command. Still, no test is actually executed and the "No tests found" output is shown. When...
Read more >Testing Environments - React
Tests often run in an environment without access to a real rendering surface like a browser. For these environments, we recommend simulating a...
Read more >Cannot run Jest tests with create-react-app fork : WEB-44731
First, I thought that it was due to one of our customizations. So I took the plain create-react-app source and just published the...
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
Sorry - been on my honeymoon, just started getting back to writing code.
I think this is caused by two things, which now has 2 PRs
Which fixes this 👍
yes @seanpoulter , is not working for me