mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 11:01:34 +00:00
16 lines
488 B
TypeScript
16 lines
488 B
TypeScript
import { cliProcessTestFiles } from "./vitest.cli-process-paths.mjs";
|
|
// Vitest cli config wires the cli test shard.
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
export function createCliVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(["src/cli/**/*.test.ts"], {
|
|
dir: "src/cli",
|
|
env,
|
|
exclude: cliProcessTestFiles,
|
|
name: "cli",
|
|
passWithNoTests: true,
|
|
});
|
|
}
|
|
|
|
export default createCliVitestConfig();
|