skovhus / jest-codemods

Codemods for migrating to Jest https://github.com/facebook/jest 👾
MIT License
877 stars 81 forks source link

Is Sinon actually incompatible with Jest? #551

Open AllieCR opened 8 months ago

AllieCR commented 8 months ago

When I tried using the mocha codemod I saw this message logged:

Usage of package "sinon" might be incompatible with Jest; it's recommended the sinon transformer is run first

But I've seen forum comments where people say that it is fine to use Sinon with Jest, also Jest actually uses parts of Sinon, and I've only seen mention of one Sinon method test which has caused problems with Jest. On top of that, I can't find the method test mentioned in the Sinon docs.

Can anyone let me know how they understand Sinon to be incompatible with Jest?