-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Jest Preset: Ignore is-plain-obj
transformation
#43179
Conversation
Size Change: 0 B Total Size: 1.27 MB ℹ️ View Unchanged
|
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.
That's great. Thank you so much for such a quick fix.
Would you mind adding an entry in the changelog file of the packages so I could use that when doing a patch release for the package?
Sure thing! I think it's only the |
fac982c
to
92675a9
Compare
Confirmed. Added changelog entries to both packages in 92675a9. Thanks, @gziolo! |
* Jest Preset: Ignore is-plain-obj transformation * Add changelogs
What?
This PR moves the
is-plain-obj
transform ignore rule to the jest default preset.Why?
is-plain-obj
is an ESM-only package and since ESM isn't fully supported by Jest, it's not able to run tests on components where that package is imported.How?
We already had a transform ignore rule, we're just moving it to
@wordpress/jest-preset-default
in order for it to be consumed by other packages like@wordpress/scripts
.Testing Instructions
Verify all unit tests still pass.