mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
fix(test): stabilize Vitest ownership audit (#123394)
* fix(test): stabilize Vitest ownership audit * fix(test): restore Codex state test owner
This commit is contained in:
committed by
GitHub
parent
08224cdedb
commit
a3303b9435
@@ -81,11 +81,36 @@ describe("projects vitest config", () => {
|
||||
expect(agentConfigs.size).toBe(agentVitestProjectConfigs.length);
|
||||
});
|
||||
|
||||
it("covers each normal full-suite test file exactly once", async () => {
|
||||
const { missing, duplicated } = await auditFullSuiteTestFileOwnership();
|
||||
it("covers each normal full-suite test file exactly once after configs cached filtered includes", async () => {
|
||||
const contractTestConfigs = [
|
||||
contractChannelSurfaceConfig,
|
||||
contractChannelConfigConfig,
|
||||
contractChannelRegistryConfig,
|
||||
contractChannelSessionConfig,
|
||||
contractPluginConfig,
|
||||
].map(requireTestConfig);
|
||||
const previousIncludes = contractTestConfigs.map((config) => config.include);
|
||||
|
||||
expect(missing).toStrictEqual([]);
|
||||
expect(duplicated).toStrictEqual([]);
|
||||
try {
|
||||
// A CLI path outside the contract patterns caches these defaults with empty includes.
|
||||
for (const config of contractTestConfigs) {
|
||||
config.include = [];
|
||||
}
|
||||
|
||||
const { missing, duplicated } = await auditFullSuiteTestFileOwnership();
|
||||
|
||||
expect(missing).toStrictEqual([]);
|
||||
expect(duplicated).toStrictEqual([]);
|
||||
} finally {
|
||||
contractTestConfigs.forEach((config, index) => {
|
||||
const previousInclude = previousIncludes[index];
|
||||
if (previousInclude === undefined) {
|
||||
delete config.include;
|
||||
} else {
|
||||
config.include = previousInclude;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps all embedded harnesses under their canonical embedded owner", () => {
|
||||
|
||||
Reference in New Issue
Block a user