Skip to content
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

Merged
merged 3 commits into from
Apr 30, 2021

Conversation

emmenko
Copy link
Member

@emmenko emmenko commented Apr 29, 2021

Ref #1829

@changeset-bot
Copy link

changeset-bot bot commented Apr 29, 2021

🦋 Changeset detected

Latest commit: c75880b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
merchant-center-application-template-starter Patch
@commercetools-frontend/sdk Major
@commercetools-frontend/jest-preset-mc-app Major
@commercetools-frontend/application-shell Major
playground Patch

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

@vercel
Copy link

vercel bot commented Apr 29, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/commercetools/merchant-center-application-kit/BV7seXhCbEa2RixyoEseDmektKNF
✅ Preview: https://merchant-cente-git-nm-enzyme-opt-in-commer-cb0b42.vercel.app

@emmenko emmenko requested review from tdeekens and adnasa April 29, 2021 16:56
@emmenko emmenko added 💥 Type: Breaking Change 🤖 Type: Dependencies Dependency updates or something similar labels Apr 29, 2021
@emmenko emmenko changed the title [Breaking] Drop Enzyme support from Jest preset [Breaking] Drop Enzyme support from Jest preset and make it opt-in Apr 29, 2021
Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clean up! 💯

Copy link
Contributor

@adnasa adnasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hammer geil

.changeset/serious-actors-attend.md Show resolved Hide resolved
Comment on lines +7 to +14
const createJestPresetForEnzyme = (version) => ({
...defaultPreset,
snapshotSerializers: ['enzyme-to-json/serializer'],
setupFilesAfterEnv: [
resolveRelativePath('../setup-test-framework.js'),
resolveRelativePath(`./setup-test-framework-for-enzyme-${version}.js`),
],
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice abstraction

@vercel vercel bot temporarily deployed to Preview April 30, 2021 08:27 Inactive
@adnasa
Copy link
Contributor

adnasa commented Apr 30, 2021

to be clear, when we release this, we update the MC-FE to opt-in v16 adapter, right?
I don't mind doing it.

@emmenko emmenko merged commit 49d253a into main Apr 30, 2021
@emmenko emmenko deleted the nm-enzyme-opt-in branch April 30, 2021 10:51
@ghost ghost mentioned this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💥 Type: Breaking Change 🤖 Type: Dependencies Dependency updates or something similar
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants