-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathvitest.internal.config.ts
More file actions
18 lines (16 loc) · 802 Bytes
/
Copy pathvitest.internal.config.ts
File metadata and controls
18 lines (16 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { getInternalTestProjects } from "./internal-test-projects.mjs";
import { defineConfig } from "vitest/config";
import { DurationShardingSequencer } from "./internal-packages/testcontainers/src/sequencer.cjs";
// Match the packages selected by `turbo run test --filter "@internal/*"`.
// Load each package's own config so its include/exclude patterns, setup files,
// retries and timeouts still apply. A single discovery pass lets the sequencer
// balance files across packages instead of giving every shard a slice of each.
const projects = getInternalTestProjects(__dirname).map((project) => project.root);
export default defineConfig({
test: {
projects,
sequence: { sequencer: DurationShardingSequencer, concurrent: false },
fileParallelism: false,
maxWorkers: 1,
},
});