-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
convert all exports to ESM #7548
Conversation
e8ba1ba
to
8221a20
Compare
Codecov Report
@@ Coverage Diff @@
## master #7548 +/- ##
=========================================
- Coverage 67.98% 67.9% -0.08%
=========================================
Files 249 248 -1
Lines 9511 9478 -33
Branches 5 6 +1
=========================================
- Hits 6466 6436 -30
+ Misses 3043 3040 -3
Partials 2 2
Continue to review full report at Codecov.
|
toMatchInlineSnapshot, | ||
toMatchSnapshot, | ||
toThrowErrorMatchingInlineSnapshot, | ||
toThrowErrorMatchingSnapshot, | ||
}); | ||
global.expect.extend = extend; | ||
global.expect.assertions = assertions; | ||
global.expect.hasAssertions = hasAssertions; |
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.
Aren't these methods already bound to expect
? There's also expect.any
, expect.anything
, maybe it's better to import * as expect from 'expect';
?
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.
I changed this back to how it was.
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.
LGTM. Left one comment on importing expect in jest-circus, but I'm sure you've considered that already
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Better tooling using the language for modules.
Not sure about the
expect
changes, thoughts?Test plan
Green CI