mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
19 lines
551 B
TypeScript
19 lines
551 B
TypeScript
// Vitest infra config wires the infra test shard.
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
import { boundaryTestFiles } from "./vitest.unit-paths.mjs";
|
|
|
|
export function createInfraVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["src/infra/**/*.test.ts"], {
|
|
dir: "src",
|
|
env,
|
|
exclude: boundaryTestFiles,
|
|
fileParallelism: false,
|
|
isolate: true,
|
|
name: "infra",
|
|
passWithNoTests: true,
|
|
pool: "forks",
|
|
});
|
|
}
|
|
|
|
export default createInfraVitestConfig();
|