mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-13 10:11:20 +00:00
14 lines
379 B
TypeScript
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],
|
|
},
|
|
});
|
|
}
|