test: tighten prompt snapshot catalog assertions

This commit is contained in:
Peter Steinberger
2026-05-09 09:41:57 +01:00
parent 7822c35339
commit 805b959c6f

View File

@@ -177,8 +177,12 @@ describe("happy path prompt snapshots", () => {
fs.mkdirSync(path.dirname(cachePath), { recursive: true });
fs.writeFileSync(cachePath, JSON.stringify({ models: [] }));
await expect(findDefaultCatalogPath({ env: {}, homeDir: root })).resolves.toMatchObject({
await expect(findDefaultCatalogPath({ env: {}, homeDir: root })).resolves.toEqual({
catalogPath: cachePath,
candidates: [
cachePath,
path.join(root, "code", "codex", "codex-rs", "models-manager", "models.json"),
],
});
} finally {
fs.rmSync(root, { recursive: true, force: true });