-
-
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
Make jest-matcher-utils use ESM exports #4342
Conversation
@@ -11,9 +11,9 @@ | |||
import type {DiffOptions} from 'jest-diff/src/diff_strings.js'; | |||
import type {Event, State} from 'types/Circus'; | |||
|
|||
const {printReceived, printExpected} = require('jest-matcher-utils'); |
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.
seemed weird to use require
here, but maybe on purpose?
@@ -14,7 +14,6 @@ | |||
"jest-environment-node": "^20.0.3", | |||
"jest-get-type": "^20.0.3", | |||
"jest-jasmine2": "^20.0.4", | |||
"jest-matcher-utils": "^20.0.3", |
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.
Neither this nor jest-diff
actually used it...
@@ -19,7 +19,7 @@ import type { | |||
PromiseMatcherFn, | |||
} from 'types/Matchers'; | |||
|
|||
import utils from 'jest-matcher-utils'; | |||
import * as utils from 'jest-matcher-utils'; |
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'm guessing this was the actual error
I can not reproduce the windows CI failure locally... |
The AppVeyor build is still failing for some reason, but now the travis build is passing again!! |
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
Might help with intermittent
'default' is not exported by packages/jest-matcher-utils/build/index.js
Test plan
jest