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.

Update to jest@26 leads to 4 tests failing.

See original GitHub issue

When 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lukasoppermanncommented, Jul 8, 2020

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.

1reaction
kaffarellcommented, Jul 8, 2020

Sorry, I was not able to fix this. What I have found out:

  • That the dataTransferObject now has a type (format) as first parameter
  • That we maybe have to add a type to the created customEvent (CustomEvent & {dataTransfer?: any})

But sadly none of these things have solved the issue 😭

Read more comments on GitHub >

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

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