Replies: 1 comment
-
|
In your If you have export {};
module.exports = {
// ...
transform: {
".(ts|tsx)": "ts-jest"
},
// ...
}you can replace this with export {};
module.exports = {
// ...
transform: {
".(ts|tsx)": ["ts-jest", {"diagnostics": {"ignoreCodes": [151001]}}],
},
// ...
}and the warning will be gone. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I run
jest, it always printsI do not want to set
esModuleInteroptotrue.I have seen
--silentas a suggestion to suppress warnings, but this would also suppress everyconsole.logI've made, which I don't want. (setting--silentalso doesn't even suppress the warning for me for some reason)How can I either disable all warnings or this specific warning in Jest while keeping
console.logoutput?Beta Was this translation helpful? Give feedback.
All reactions