-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
chore: add ESM type: module to package.json #109319
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| 'use strict'; | ||
| import {run} from 'jest'; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ESM import hoisting defeats env var initialization orderLow Severity The static
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this matters? Jest always runs in test mode, and |
||
|
|
||
| // Do this as the first thing so that any code reading it knows the right env. | ||
| // process.env.BABEL_ENV = 'test'; | ||
|
|
@@ -20,4 +20,4 @@ if (process.env.CI || process.env.SENTRY_PRECOMMIT || argv.includes('--coverage' | |
| argv = argv.filter(arg => arg !== '--watch'); | ||
| } | ||
|
|
||
| require('jest').run(argv); | ||
| run(argv); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| export {rules} from './src/rules/index.js'; |
This file was deleted.


Uh oh!
There was an error while loading. Please reload this page.