question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create-react-app Tests not running

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ortacommented, Mar 27, 2017

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 👍

1reaction
mattiascaricatocommented, Feb 8, 2018

yes @seanpoulter , is not working for me

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found