New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sinon transformer doesn't support cjs #544
Comments
Can you add an example file here, it should work for both? |
My settings:
|
Thanks! Would you be up for fixing this? I hope it should be pretty straightforward as the other transformers handles this correctly (I believe). I suggest adding a test case in https://github.com/skovhus/jest-codemods/blob/main/src/transformers/sinon.test.ts and take it from there. |
just tried for a while, I don't think I'm able to do it, most of the type def is gone and I don't have the knowledge foundation jscodeshift |
Hello, I'm trying to use this tool to transform existing Sinon code to Jest
But the transformer skips every file I throw at it.
I see the test case for Sinon transformer is using ESM while all other is Cjs
Its nice to support ESM, but cjs should be the majority of the user here
The text was updated successfully, but these errors were encountered: