mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 09:41:11 +00:00
23 lines
528 B
TypeScript
23 lines
528 B
TypeScript
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
export function createCronVitestConfig(env?: Record<string, string | undefined>) {
|
|
const config = createScopedVitestConfig(["src/cron/**/*.test.ts"], {
|
|
dir: "src",
|
|
env,
|
|
name: "cron",
|
|
passWithNoTests: true,
|
|
});
|
|
config.test = {
|
|
...config.test,
|
|
maxWorkers: 1,
|
|
fileParallelism: false,
|
|
sequence: {
|
|
...config.test?.sequence,
|
|
groupOrder: 1,
|
|
},
|
|
};
|
|
return config;
|
|
}
|
|
|
|
export default createCronVitestConfig();
|