mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 17:51:22 +00:00
14 lines
448 B
TypeScript
14 lines
448 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",
|
|
});
|
|
}
|
|
|
|
export default createCommandsVitestConfig();
|