Skip to content

Commit 5e2a449

Browse files
committed
fixup! test: unskip test-watch-create-isolation-none
1 parent 49f66df commit 5e2a449

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

test/common/watch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function assertTestOutput(run, shouldCheckRecursion = false, expectations) {
6363
if (shouldCheckRecursion) {
6464
assert.doesNotMatch(run, /run\(\) is being called recursively/);
6565
}
66-
assert.match(run, new RegExp(RegExp.escape(Object.entries({
66+
assert.match(run, new RegExp(`\n${Object.entries({
6767
tests: 1,
6868
suites: 0,
6969
pass: 1,
@@ -72,7 +72,7 @@ function assertTestOutput(run, shouldCheckRecursion = false, expectations) {
7272
skipped: 0,
7373
todo: 0,
7474
...expectations,
75-
}).map((t) => ` ${t.join(' ')}`).join('\n'))));
75+
}).map((t) => `. ${t.join(' ')}`).join('\n')}\n`));
7676
}
7777

7878
async function testRunnerWatch({
@@ -222,7 +222,7 @@ async function testRunnerWatch({
222222
await once(child, 'exit');
223223

224224
assertTestOutput(runs[0], false);
225-
assertTestOutput(runs[1], false, {
225+
assertTestOutput(runs[1], false, isolation === 'none' && {
226226
tests: 2,
227227
pass: 2,
228228
});

test/test-runner/test-runner.status

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ prefix test-runner
44
# below, without ".js", followed by ": PASS,FLAKY". Example:
55
# sample-test : PASS,FLAKY
66

7+
[true] # This section applies to all platforms
8+
79
[$system==macos && $arch==x64]
810
# https://github.com/nodejs/node/issues/54534#issuecomment-5423551021
911
test-run-watch-cwd-isolation-none: PASS, FLAKY

0 commit comments

Comments
 (0)