test: clarify infra cleanup assertions

This commit is contained in:
Peter Steinberger
2026-05-08 12:56:00 +01:00
parent 42c9bd59e7
commit a4764091ce
6 changed files with 8 additions and 10 deletions

View File

@@ -111,7 +111,7 @@ describe("listChannelCatalogEntries", () => {
},
});
expect(() => module.listChannelCatalogEntries({ env: ENV })).not.toThrow();
expect(module.listChannelCatalogEntries({ env: ENV })).toEqual([]);
expect(loadRecordsSpy).toHaveBeenCalledTimes(1);
expect(discoverSpy).toHaveBeenCalledTimes(1);

View File

@@ -518,7 +518,7 @@ describe("stageBundledPluginRuntime", () => {
return realSymlinkSync(String(target), linkPath, type);
}) as typeof fs.symlinkSync);
expect(() => stageBundledPluginRuntime({ repoRoot })).not.toThrow();
stageBundledPluginRuntime({ repoRoot });
const runtimeAssetPath = path.join(
repoRoot,