Skip to content

fix: use dynamic pkg metadata in tests - #3

Closed
yimsk wants to merge 6 commits into
mainfrom
fix/dynamic-test-metadata
Closed

fix: use dynamic pkg metadata in tests#3
yimsk wants to merge 6 commits into
mainfrom
fix/dynamic-test-metadata

Conversation

@yimsk

@yimsk yimsk commented Mar 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Test fixtures and assertions in index.test.ts had hardcoded name/version/description strings
  • Version bump to 0.1.1 broke CI because test still expected "0.1.0"
  • Now reads all metadata from package.json dynamically — no more breakage on version bumps

Changes

  • tests/index.test.ts: read package.json at module scope, use pkg.name, pkg.version, pkg.description in fixture generation and assertions

@yimsk yimsk closed this Mar 20, 2026
@yimsk
yimsk deleted the fix/dynamic-test-metadata branch March 20, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant