openclaw/vitest.commands.config.ts

12 lines
335 B
TypeScript

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,
name: "commands",
});
}
export default createCommandsVitestConfig();