You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting an issue to us! We're glad you are using and invested in Enzyme.
Before submitting, please read over our commonly reported issues to prevent duplicates!
If you haven't found any duplicated issues, please report it with your environment!
Current behavior
FAIL src/Comp/__test__/index.test.tsx
● Test suite failed to run
ReferenceError: Unknown plugin "transform-replace-object-assign" specified in "/Users/~/xxx/node_modules/airbnb-prop-types/.babelrc" at 0, attempted to resolve relative to "/Users/~/xxx/node_modules/airbnb-prop-types"
at node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (<anonymous>)
at Function.normalisePlugins (node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (node_modules/babel-core/lib/transformation/pipeline.js:46:16)
This is a bug in the react native packager - it transpiles node_modules, which shouldn’t ever be done.
The temporary workaround until they fix this design flaw is to add a post install script to your app that deletes all .babelrc files in your node_modules dir.
Thanks for reporting an issue to us! We're glad you are using and invested in Enzyme.
Before submitting, please read over our commonly reported issues to prevent duplicates!
All common issues
Notoriously common issues
If you haven't found any duplicated issues, please report it with your environment!
Current behavior
Expected behavior
Your environment
react-native
API
Version
Adapter
I think it's the mistake caused by the
enzyme-adapter-utils
upgrade.The text was updated successfully, but these errors were encountered: