Update to jest@26 leads to 4 tests failing.
See original GitHub issueWhen updating the dependencies to jest@26
and ts-jest@26
4 tests in the __tests__/events/events.test.ts
test file fail.
@kaffarell if you have time to look into this, it would be great. It is weird, but probably has to due with some change from jest.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Mocks broken after updating to Jest 26 - Stack Overflow
I just updated react-scripts to 4.0 which includes Jest@26 and some accompanying test packages here's the package.json diff:.
Read more >Configuring Jest
The bail config option can be used here to have Jest stop running tests after n failures. Setting bail to true is the...
Read more >Problems with using useFakeTimers('modern') in a create ...
Jest 26 ships with Jsdom 16 by default. So we don't need to pass this environment here. I tested the Lodash's debounce with...
Read more >React Snapshot Testing: The Bad Parts | by Nick Gard - Medium
Do you have failing snapshot tests? No problem. Run jest --update-snapshots and now they're passing. Your colleagues may scream at you for not...
Read more >ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. Latest version: 29.0.3, ...
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
Hey @kaffarell thank you for looking into it! I guess we just have to keep trying to figure it out. Let’s skip jest@26 for now and release without it.
Sorry, I was not able to fix this. What I have found out:
But sadly none of these things have solved the issue 😭