mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-15 15:13:48 -06:00
896592b747
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.
28 lines
682 B
TypeScript
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();
|