Only bundle the release build, and don't import src in tests (#13978)

* Only bundle the release build, and don't import `src` in tests

* Use file extension to signal skipping

* Remove unnecessary config change

* Fix imports
This commit is contained in:
Nicolò Ribaudo
2021-11-24 16:08:53 +01:00
committed by GitHub
parent 75996cb62b
commit ad1798ed48
12 changed files with 28 additions and 22 deletions

View File

@@ -34,6 +34,7 @@ describe("parserOverride", () => {
const babel7node12 = parseInt(process.versions.node) < 12 ? it.skip : it;
babel7node12("works when parsing in a worker", async () => {
const require = createRequire(import.meta.url);
// eslint-disable-next-line import/extensions
const babelESLintWorker = require("@babel/eslint-parser/experimental-worker");
const { ast } = babelESLintWorker.parseForESLint(`27`, {