-
Notifications
You must be signed in to change notification settings - Fork 4
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
Warning message running npm test
#9
Comments
I have not written any tests with this setup and I do not have a lot of time but I will accept a PR if you write one. Cheers. |
In my case setting |
Having the same issue |
In my case, setting "esModuleInterop": true did in fact suppress these warnings (ts-jest 29.1.2, jest 29.7.0) so I can't reproduce this exact bug as described. But I don't want esModuleInterop true (which always emits extra bulky shim code), searched for how to disable these pesky warnings, and found this page. If anybody else is in a similar situation, you can suppress the warnings explicitly by adjusting your jest.config from this style of ts-jest invocation:
to this:
|
Using this template unmodified, I get this message running
npm test
:With this dummy test file:
The message remains no matter in which
tsconfig.json
I put the following lines:The text was updated successfully, but these errors were encountered: