mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
test(ext/node): prevent running the same test cases twice (#26812)
This commit is contained in:
parent
bfc143a5ac
commit
b955d03740
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@ import { magenta } from "@std/fmt/colors";
|
||||||
import { pooledMap } from "@std/async/pool";
|
import { pooledMap } from "@std/async/pool";
|
||||||
import { dirname, fromFileUrl, join } from "@std/path";
|
import { dirname, fromFileUrl, join } from "@std/path";
|
||||||
import { assertEquals, fail } from "@std/assert";
|
import { assertEquals, fail } from "@std/assert";
|
||||||
|
import { distinct } from "@std/collections";
|
||||||
import {
|
import {
|
||||||
config,
|
config,
|
||||||
getPathsFromTestSuites,
|
getPathsFromTestSuites,
|
||||||
|
@ -36,6 +37,9 @@ const testPaths = partitionParallelTestPaths(
|
||||||
getPathsFromTestSuites(config.ignore),
|
getPathsFromTestSuites(config.ignore),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
testPaths.sequential = distinct(testPaths.sequential);
|
||||||
|
testPaths.parallel = distinct(testPaths.parallel);
|
||||||
|
|
||||||
const cwd = new URL(".", import.meta.url);
|
const cwd = new URL(".", import.meta.url);
|
||||||
const windowsIgnorePaths = new Set(
|
const windowsIgnorePaths = new Set(
|
||||||
getPathsFromTestSuites(config.windowsIgnore),
|
getPathsFromTestSuites(config.windowsIgnore),
|
||||||
|
|
Loading…
Reference in a new issue