mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* fix(register): do not inherit parent execArgv Per https://nodejs.org/api/worker_threads.html#launching-worker-threads-from-preload-scripts, new Worker threads will inherit command line flags, including `-e` and `-r`. When they are combined with the `--input-type`, Node.js somehow hangs and the worker does not start. * feat: resolve <rootDir> token in process tests * add tests * fix: ensure args are always string * replace rootDir by file:// url * test: use <rootUrl> for --import tests
15 lines
370 B
JavaScript
15 lines
370 B
JavaScript
import {
|
|
buildProcessTests,
|
|
buildParallelProcessTests,
|
|
} from "@babel/helper-transform-fixture-test-runner";
|
|
|
|
export const runParallel = buildParallelProcessTests(
|
|
"babel-register",
|
|
buildProcessTests(
|
|
new URL("../fixtures/preload", import.meta.url),
|
|
function (test) {
|
|
test.opts.env = { ...test.opts.env, BABEL_DISABLE_CACHE: true };
|
|
},
|
|
),
|
|
);
|