openclaw/test/vitest/vitest.hooks.config.ts
2026-06-04 20:40:11 -04:00

13 lines
398 B
TypeScript

// Vitest hooks config wires the hooks test shard.
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
export function createHooksVitestConfig(env?: Record<string, string | undefined>) {
return createScopedVitestConfig(["src/hooks/**/*.test.ts"], {
dir: "src/hooks",
env,
name: "hooks",
passWithNoTests: true,
});
}
export default createHooksVitestConfig();