Files
openclaw/vitest.project-shard-config.ts
2026-04-06 17:34:11 +01:00

14 lines
379 B
TypeScript

import { defineConfig } from "vitest/config";
import { sharedVitestConfig } from "./vitest.shared.config.ts";
export function createProjectShardVitestConfig(projects: readonly string[]) {
return defineConfig({
...sharedVitestConfig,
test: {
...sharedVitestConfig.test,
runner: "./test/non-isolated-runner.ts",
projects: [...projects],
},
});
}