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.

[v4] What else has been changed in testing ?

See original GitHub issue

I upgraded react-scripts in my project from version 3.4.x to 4.0.0 and testing isn’t like before.

I read the changelog, you said that you’ve upgraded to Jest 26 and now set resetMocks to true by default in the Jest config! (hmm, this isn’t expected), so, I added:

"resetMocks": false,

to make my tests work again. I fixed some other new Eslint warning (and that’s okay)… BUT, Now it covers only a part of the test suits! I have 420 tests (551 suites) in the project,

"test": "react-scripts test --coverage --watchAll=true",

runs only 118 (25 suites)!

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
mrmckebcommented, Oct 23, 2020

Can you please try setting watchAll to false and let me know if that changes anything?

1reaction
chrkaatzcommented, Oct 28, 2020

I am getting: “Nothing was returned from render”

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's new in Selenium 4: Key Features | BrowserStack
What is new in Selenium 4 version? Read this article to understand about major changes in the new version of Selenium toolsuite -...
Read more >
Features Added to TestComplete 4.0 - SmartBear Support
The entire project structure has been changed. Now projects consist of project items which you may use to perform various testing actions.
Read more >
Adapter V4 Release Notes - NUnit Docs
NUnit3 Test Adapter for Visual Studio - Version 4.0.0 - June 6, 2021. This major release contains a series of changes, and also...
Read more >
Types of Software Testing: Different Testing Types with Details
We, as testers, are aware of the various types of Software Testing like Functional Testing, Non-Functional Testing, Automation Testing, Agile ...
Read more >
The different types of testing in software | Atlassian
It's much more robust and reliable than manual tests – but the quality of your automated tests depends on how well your test...
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