From c4ec48cbdb24def5885a4931fa4f4d8ae271bb38 Mon Sep 17 00:00:00 2001 From: Shan Valleru Date: Wed, 16 Sep 2026 10:27:00 -0700 Subject: [PATCH] test: stop pinning the release version The manifest moves on every release, so the assertion failed on the first release PR. Check the shape and that package.json agrees instead. --- tests/unit/release-config.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/release-config.test.ts b/tests/unit/release-config.test.ts index 3bf7000a1..04b4331b8 100644 --- a/tests/unit/release-config.test.ts +++ b/tests/unit/release-config.test.ts @@ -21,11 +21,13 @@ describe('release-please configuration', () => { expect(config['bump-minor-pre-major']).toBe(true) }) - it('starts from 0.1.0 and agrees with package.json', () => { + it('tracks one SemVer version that package.json agrees with', () => { const manifest = read('.release-please-manifest.json') const pkg = read('package.json') - expect(manifest['.']).toBe('0.1.0') + // release-please moves this on every release, so the test checks the + // shape and that the two files agree, never a specific number. + expect(manifest['.']).toMatch(/^\d+\.\d+\.\d+$/) expect(pkg.version).toBe(manifest['.']) }) })