We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
moduleNameMapper
Any other advice on how we can resolve this?
Thanks!
The text was updated successfully, but these errors were encountered:
I can resolve the error by adding this jest override, but I'm just wondering if there's any other recommended approach:
"jest": { "transformIgnorePatterns": [ "/node_modules/react-dnd/dist/index/" ] }
Sorry, something went wrong.
I can resolve the error by adding this jest override, but I'm just wondering if there's any other recommended approach: "jest": { "transformIgnorePatterns": [ "/node_modules/react-dnd/dist/index/" ] }
I have the same issue as OP. Tried what he mentioned above with transformIgnorePatterns with no success.
transformIgnorePatterns
Just kidding. I had my jest.config.js set up like this:
jest.config.js
module.exports = { ...a bunch of stuff, transformIgnorePatterns: [ 'node_modules/(?!@<some package here>)', 'node_modules/(?!react-dnd|core-dnd|@react-dnd|dnd-core|react-dnd-html5-backend)', ], }
... which didn't work. But when I set it like this:
module.exports = { ...a bunch of stuff, transformIgnorePatterns: [ 'node_modules/(?!@<some package here>|react-dnd|core-dnd|@react-dnd|dnd-core|react-dnd-html5-backend)', ], }
It did!
No branches or pull requests
The Issue
Relevant Package Versions / Background
This Issue Was Previously Reported
moduleNameMapper
to resolve the issueQuestion
Any other advice on how we can resolve this?
Thanks!
The text was updated successfully, but these errors were encountered: