Skip to content

Commit 8a3ae82

Browse files
test: read bundled command-code version from the manifest (#14)
Catalog sync PRs fail when a test pins an old CLI version. Assert startup.json matches manifest.json instead. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 98b4dd5 commit 8a3ae82

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- Catalog refresh and post-release manifest PRs auto-merge when required CI is green.
1313

14+
### Fixed
15+
16+
- Startup summary test reads the bundled command-code version from the manifest instead of pinning one release.
17+
1418
## [0.7.0] - 2026-08-28
1519

1620
### Changed

tests/unit/plugin.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,11 @@ test("startup summary uses bundled manifest version and status", async () => {
195195
const summary = JSON.parse(readFileSync(join(testStateDir, "startup.json"), "utf-8"));
196196
const manifest = JSON.parse(readFileSync(join(repoRoot, "manifest.json"), "utf-8")) as {
197197
status: string;
198+
commandCodeVersion: string;
198199
};
199200
expect(summary.catalogSource).toBe("bundled");
200-
expect(summary.commandCodeVersion).toBe("1.38.1");
201+
expect(summary.commandCodeVersion).toBe(manifest.commandCodeVersion);
202+
expect(summary.commandCodeVersion).toMatch(/^\d+\.\d+\.\d+/);
201203
expect(summary.degraded).toBe(manifest.status === "degraded" || manifest.status === "broken");
202204
expect(summary.modelCount).toBeGreaterThan(20);
203205
});

0 commit comments

Comments
 (0)