mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-26 08:13:02 +00:00
17 lines
567 B
TypeScript
17 lines
567 B
TypeScript
// Vitest shared core config wires the shared core test shard.
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
import { getUnitFastTestFiles } from "./vitest.unit-fast-paths.mjs";
|
|
|
|
export function createSharedCoreVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["src/shared/**/*.test.ts"], {
|
|
dir: "src",
|
|
env,
|
|
exclude: getUnitFastTestFiles(),
|
|
includeOpenClawRuntimeSetup: false,
|
|
name: "shared-core",
|
|
passWithNoTests: true,
|
|
});
|
|
}
|
|
|
|
export default createSharedCoreVitestConfig();
|