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

Make jest-matcher-utils use ESM exports #4342

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented Aug 24, 2017

Summary
Might help with intermittent 'default' is not exported by packages/jest-matcher-utils/build/index.js

Test plan
jest

@@ -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');
Copy link
Member Author

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",
Copy link
Member Author

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';
Copy link
Member Author

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

@SimenB
Copy link
Member Author

SimenB commented Aug 24, 2017

I can not reproduce the windows CI failure locally...

@cpojer cpojer merged commit b9db0a1 into jestjs:master Aug 24, 2017
@cpojer
Copy link
Member

cpojer commented Aug 24, 2017

The AppVeyor build is still failing for some reason, but now the travis build is passing again!!

@SimenB SimenB deleted the matcher-util-esm-export branch August 24, 2017 15:21
@github-actions
Copy link

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants