Skip to content

Commit

Permalink
Skip tests that load src directories
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 14, 2021
1 parent d2a8a1e commit 5a6ee69
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jest.config.js
@@ -1,5 +1,16 @@
const supportsESM = parseInt(process.versions.node) >= 12;

const importsSrc = [
"packages/babel-parser/test/unit/tokenizer/types.js",
"packages/babel-parser/test/unit/util/identifier.js",
"packages/babel-parser/test/unit/util/location.js",
"packages/babel-plugin-bugfix-safari-id-destructuring-collision-in-function-expression/test/util.test.js",
"packages/babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining/test/util.test.js",
"packages/babel-plugin-proposal-optional-chaining/test/util.test.js",
"packages/babel-preset-react/test/normalize-options.spec.js",
"packages/babel-preset-typescript/test/normalize-options.spec.js",
];

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

Expand All @@ -25,6 +36,7 @@ module.exports = {
"<rootDir>/build/",
"<rootDir>/.history/", // local directory for VSCode Extension - https://marketplace.visualstudio.com/items?itemName=xyz.local-history
"_browser\\.js",
...importsSrc,
],
testEnvironment: "node",
setupFilesAfterEnv: ["<rootDir>/test/testSetupFile.js"],
Expand Down

0 comments on commit 5a6ee69

Please sign in to comment.