summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-04-14 18:50:58 -0400
committerGitHub <noreply@github.com>2023-04-14 18:50:58 -0400
commit1bca994143b4812979a264f1105ae36de1efb982 (patch)
tree2d58c6421bb69b04235a80e78728cfa9de1fe16e /cli
parent0a67a3965fd7c0041b818a5cb1068dee19ae25b1 (diff)
chore: fix running node tests in parallel on Windows (#18711)
Diffstat (limited to 'cli')
-rw-r--r--cli/tests/node_compat/common.ts4
-rw-r--r--cli/tests/node_compat/test.ts2
2 files changed, 2 insertions, 4 deletions
diff --git a/cli/tests/node_compat/common.ts b/cli/tests/node_compat/common.ts
index e774991f6..e9cfe3191 100644
--- a/cli/tests/node_compat/common.ts
+++ b/cli/tests/node_compat/common.ts
@@ -54,9 +54,7 @@ export function getPathsFromTestSuites(suites: TestSuites): string[] {
return testPaths;
}
-const PARALLEL_PATTERN = Deno.build.os == "windows"
- ? /^parallel[/\/]/
- : /^parallel\//;
+const PARALLEL_PATTERN = /^parallel[\/\\]/;
export function partitionParallelTestPaths(
testPaths: string[],
diff --git a/cli/tests/node_compat/test.ts b/cli/tests/node_compat/test.ts
index 896b88bcf..17c5bd029 100644
--- a/cli/tests/node_compat/test.ts
+++ b/cli/tests/node_compat/test.ts
@@ -108,7 +108,7 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
${stderrOutput}
You can repeat only this test with the command:
-
+
${repeatCmd}
`;
console.log(msg);