mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
25 lines
878 B
TypeScript
25 lines
878 B
TypeScript
import {
|
|
gatewayServerBackedHttpTestFiles,
|
|
gatewayServerExcludedTestFiles,
|
|
} from "./vitest.gateway-server-paths.mjs";
|
|
// Vitest gateway server config wires the gateway server test shard.
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
export function createGatewayServerVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(
|
|
["src/gateway/**/*server*.test.ts", ...gatewayServerBackedHttpTestFiles],
|
|
{
|
|
dir: "src/gateway",
|
|
env,
|
|
exclude: ["src/gateway/server-methods/**/*.test.ts", ...gatewayServerExcludedTestFiles],
|
|
fileParallelism: false,
|
|
// Gateway child projects share one include file; preserve this project's ownership.
|
|
intersectIncludeFile: true,
|
|
isolate: false,
|
|
name: "gateway-server",
|
|
},
|
|
);
|
|
}
|
|
|
|
export default createGatewayServerVitestConfig();
|