openclaw/vitest.unit.config.ts
Shunsuke Hayashi 0dcc2b4c8d test: update test configurations and test cases
- Update integration tests for agent flow and githubops
- Update unit tests for agent, engine, and MCP
- Update vitest configs for better test isolation

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-26 06:54:38 +09:00

21 lines
541 B
TypeScript

import { defineConfig } from "vitest/config";
import baseConfig from "./vitest.config.ts";
const baseTest = (baseConfig as { test?: { include?: string[]; exclude?: string[] } }).test ?? {};
const include = baseTest.include ?? [
"src/**/*.test.ts",
"extensions/**/*.test.ts",
"test/format-error.test.ts",
"test/unit/**/*.test.ts",
];
const exclude = baseTest.exclude ?? [];
export default defineConfig({
...baseConfig,
test: {
...baseTest,
include,
exclude: [...exclude, "src/gateway/**", "extensions/**"],
},
});