Skip to content

Commit

Permalink
Only use the new runner when Node.js natively supports ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 24, 2021
1 parent 8d4454b commit 4c8b165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const supportsESM = parseInt(process.versions.node) >= 12;
const isPublishBundle = process.env.IS_PUBLISH;

module.exports = {
runner: "./test/jest-light-runner",
runner: supportsESM ? "./test/jest-light-runner" : "jest-runner",

collectCoverageFrom: [
"packages/*/src/**/*.{js,mjs,ts}",
Expand Down

0 comments on commit 4c8b165

Please sign in to comment.