mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
24 lines
571 B
TypeScript
24 lines
571 B
TypeScript
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
export function createRuntimeConfigVitestConfig(env?: Record<string, string | undefined>) {
|
|
const config = createScopedVitestConfig(["src/config/**/*.test.ts"], {
|
|
dir: "src",
|
|
env,
|
|
includeOpenClawRuntimeSetup: false,
|
|
name: "runtime-config",
|
|
passWithNoTests: true,
|
|
});
|
|
return {
|
|
...config,
|
|
test: {
|
|
...config.test,
|
|
sequence: {
|
|
...config.test?.sequence,
|
|
groupOrder: 3,
|
|
},
|
|
},
|
|
};
|
|
}
|
|
|
|
export default createRuntimeConfigVitestConfig();
|