chore: fix running node tests in parallel on Windows (#18711)

This commit is contained in:
David Sherret 2023-04-14 18:50:58 -04:00 committed by GitHub
parent 0a67a3965f
commit 1bca994143
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -54,9 +54,7 @@ export function getPathsFromTestSuites(suites: TestSuites): string[] {
return testPaths; return testPaths;
} }
const PARALLEL_PATTERN = Deno.build.os == "windows" const PARALLEL_PATTERN = /^parallel[\/\\]/;
? /^parallel[/\/]/
: /^parallel\//;
export function partitionParallelTestPaths( export function partitionParallelTestPaths(
testPaths: string[], testPaths: string[],

View file

@ -108,7 +108,7 @@ async function runTest(t: Deno.TestContext, path: string): Promise<void> {
${stderrOutput} ${stderrOutput}
You can repeat only this test with the command: You can repeat only this test with the command:
${repeatCmd} ${repeatCmd}
`; `;
console.log(msg); console.log(msg);