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

Always import jest from @jest/globals #13880

Closed
wants to merge 3 commits into from

Conversation

nicolo-ribaudo
Copy link
Member

@nicolo-ribaudo nicolo-ribaudo commented Oct 24, 2021

Q                       A
License MIT

I extracted this from #13414 (so that it can be reviewed more easily): when using native ESM, Jest disallows using the jest global.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 24, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit ff7c386:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Collaborator

babel-bot commented Oct 24, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/49396/

yarn.lock Show resolved Hide resolved
@nicolo-ribaudo
Copy link
Member Author

This doesn't work with the old Jest we use for Node.js 6 tests.

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jan 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: tests outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants