Skip to content

Commit 5191870

Browse files
pmclSFclaude
andcommitted
fix(test): make version assertion dynamic in package-version test
The hardcoded '2.0.0' assertion broke on the version bump to 2.0.1. Read the version from package.json instead so future bumps don't cause test failures. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0316d3b commit 5191870

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/integration/package-version.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ describe('Package version resolution', () => {
8383
}
8484
);
8585

86-
expect(result).toBe('2.0.0');
86+
const pkg = JSON.parse(
87+
await fs.readFile(path.join(rootDir, 'package.json'), 'utf8')
88+
);
89+
expect(result).toBe(pkg.version);
8790
});
8891
});

0 commit comments

Comments
 (0)