mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:20:44 +00:00
15 lines
467 B
TypeScript
15 lines
467 B
TypeScript
import { commandsLightTestFiles } from "./vitest.commands-light-paths.mjs";
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
export function createCommandsVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["src/commands/**/*.test.ts"], {
|
|
dir: "src/commands",
|
|
env,
|
|
exclude: commandsLightTestFiles,
|
|
name: "commands",
|
|
pool: "forks",
|
|
});
|
|
}
|
|
|
|
export default createCommandsVitestConfig();
|