mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 21:51:43 +00:00
24 lines
746 B
TypeScript
24 lines
746 B
TypeScript
// Vitest gateway client config wires the gateway client test shard.
|
|
import { createScopedVitestConfig } from "./vitest.scoped-config.ts";
|
|
|
|
function createGatewayClientVitestConfig(env?: Record<string, string | undefined>) {
|
|
return createScopedVitestConfig(
|
|
[
|
|
"packages/gateway-client/src/**/*.test.ts",
|
|
"packages/gateway-protocol/src/**/*.test.ts",
|
|
"src/gateway/**/*client*.test.ts",
|
|
"src/gateway/**/*reconnect*.test.ts",
|
|
"src/gateway/**/*android-node*.test.ts",
|
|
"src/gateway/**/*gateway-cli-backend*.test.ts",
|
|
],
|
|
{
|
|
env,
|
|
exclude: ["src/gateway/**/*server*.test.ts"],
|
|
isolate: true,
|
|
name: "gateway-client",
|
|
},
|
|
);
|
|
}
|
|
|
|
export default createGatewayClientVitestConfig();
|