-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Breaking] Drop Enzyme support from Jest preset and make it opt-in #2175
Conversation
🦋 Changeset detectedLatest commit: c75880b The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/BV7seXhCbEa2RixyoEseDmektKNF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice clean up! 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hammer geil
const createJestPresetForEnzyme = (version) => ({ | ||
...defaultPreset, | ||
snapshotSerializers: ['enzyme-to-json/serializer'], | ||
setupFilesAfterEnv: [ | ||
resolveRelativePath('../setup-test-framework.js'), | ||
resolveRelativePath(`./setup-test-framework-for-enzyme-${version}.js`), | ||
], | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice abstraction
to be clear, when we release this, we update the MC-FE to opt-in v16 adapter, right? |
Ref #1829