You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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],
|
|
},
|
|
});
|
|
}
|