Skip to content

Commit

Permalink
test(ext/node): prevent running the same test cases twice (#26812)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Nov 11, 2024
1 parent bfc143a commit b955d03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/node_compat/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { magenta } from "@std/fmt/colors";
import { pooledMap } from "@std/async/pool";
import { dirname, fromFileUrl, join } from "@std/path";
import { assertEquals, fail } from "@std/assert";
import { distinct } from "@std/collections";
import {
config,
getPathsFromTestSuites,
Expand All @@ -36,6 +37,9 @@ const testPaths = partitionParallelTestPaths(
getPathsFromTestSuites(config.ignore),
),
);
testPaths.sequential = distinct(testPaths.sequential);
testPaths.parallel = distinct(testPaths.parallel);

const cwd = new URL(".", import.meta.url);
const windowsIgnorePaths = new Set(
getPathsFromTestSuites(config.windowsIgnore),
Expand Down

0 comments on commit b955d03

Please sign in to comment.