mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
The test has been flaky for years and new platforms keep popping up. As it squeezes too many independent test cases into one file, split them into individual files to avoid masking regressions and help only mark the real flaky ones as flaky. This might also help with the flakiness itself by avoiding updating a shared tmpdir being watched by differet tests and avoiding running all these time-consuming tests in one file, which can cause a timeout on slow machines. PR-URL: https://github.com/nodejs/node/pull/60391 Refs: https://github.com/nodejs/node/issues/49605 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
9 lines
335 B
JavaScript
9 lines
335 B
JavaScript
// Test --test --watch --test-isolation=process runs tests repeatedly
|
|
import '../common/index.mjs';
|
|
import { skipIfNoWatch, refreshForTestRunnerWatch, testRunnerWatch } from '../common/watch.js';
|
|
|
|
skipIfNoWatch();
|
|
refreshForTestRunnerWatch();
|
|
|
|
await testRunnerWatch({ file: 'test.js', fileToUpdate: 'test.js', isolation: 'process' });
|