Files
openclaw/test/vitest/vitest.process.config.ts
Peter Steinberger 896592b747 test(vitest): give config creators nameable return types
A vitest/vite type bump made inferred creator return types reach
vite-internal names (TS4058/TS4082), failing check-test-types repo-wide.
Annotate the scoped/extension config roots and the spread-rebuilding
creators with ViteUserConfig; also drop an unused workflow read, mutating
sorts, and an untyped record index left by 1f591bba56.
2026-08-10 09:35:51 -07:00

28 lines
682 B
TypeScript

// Vitest process config wires the process test shard.
import type { ViteUserConfig } from "vitest/config";
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
export function createProcessVitestConfig(
env?: Record<string, string | undefined>,
): ViteUserConfig {
const config = createScopedVitestConfig(["src/process/**/*.test.ts"], {
dir: "src",
env,
includeOpenClawRuntimeSetup: false,
name: "process",
passWithNoTests: true,
});
return {
...config,
test: {
...config.test,
sequence: {
...config.test?.sequence,
groupOrder: 2,
},
},
};
}
export default createProcessVitestConfig();