mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 20:21:13 +00:00
perf(test): fix unit shard config regressions
This commit is contained in:
@@ -97,4 +97,16 @@ describe("unit vitest config", () => {
|
||||
"test/setup-openclaw-runtime.ts",
|
||||
]);
|
||||
});
|
||||
|
||||
it("appends extra exclude patterns instead of replacing the base unit excludes", () => {
|
||||
const unitConfig = createUnitVitestConfigWithOptions(
|
||||
{},
|
||||
{
|
||||
extraExcludePatterns: ["src/security/**"],
|
||||
},
|
||||
);
|
||||
expect(unitConfig.test?.exclude).toEqual(
|
||||
expect.arrayContaining(["src/commands/**", "src/config/**", "src/security/**"]),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user