diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2024-11-11 17:16:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-11 17:16:33 +0900 |
commit | b955d037406828c2ab74966dc9a6f3f882854982 (patch) | |
tree | 8e7132ead9b93fc5de2ed62e66daeb93c912e6f4 | |
parent | bfc143a5ac233a0db26ff1e29dd7b94a697d862d (diff) |
test(ext/node): prevent running the same test cases twice (#26812)
-rw-r--r-- | tests/node_compat/test.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/node_compat/test.ts b/tests/node_compat/test.ts index f6db4ee1a..6cb41d2e4 100644 --- a/tests/node_compat/test.ts +++ b/tests/node_compat/test.ts @@ -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, @@ -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), |