mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
This test contains too many independent test cases and as a result, marking it as flaky on all major platforms means actual regressions could be covered up, and it's constantly making the CI orange and requires extra resuming on the flaked platforms which is still not great. Split it into individual files so that the actual flake can be identified out of the monolith. PR-URL: https://github.com/nodejs/node/pull/60653 Refs: https://github.com/nodejs/node/issues/54534 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
16 lines
465 B
JavaScript
16 lines
465 B
JavaScript
// Test run({ watch: true, cwd }) executes using a different cwd for the runner than the process cwd
|
|
import '../common/index.mjs';
|
|
import tmpdir from '../common/tmpdir.js';
|
|
import { skipIfNoWatch, refreshForTestRunnerWatch, testRunnerWatch } from '../common/watch.js';
|
|
|
|
skipIfNoWatch();
|
|
refreshForTestRunnerWatch();
|
|
|
|
await testRunnerWatch({
|
|
fileToUpdate: 'test.js',
|
|
action: 'rename',
|
|
cwd: import.meta.dirname,
|
|
runnerCwd: tmpdir.path,
|
|
useRunApi: true,
|
|
});
|