Skip to content

test: compare package versions with the manifest instead of a literal - #497

Merged
nik13 merged 1 commit into
devfrom
test/manifest-version-assertions
Nov 1, 2026
Merged

nik13 merged 1 commit into
devfrom
test/manifest-version-assertions

Conversation

@nik13

@nik13 nik13 commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Release-please bumps package.json, src/version.ts and __version__ together, so any test that pins its own package's version to a literal fails on that package's first release.

What this fixes now:

The change:

  • The 12 TypeScript tests compare VERSION with require("../../package.json").version. That's 7 already failing plus cohere, google-genai, groq and mistral, which would fail on their next bump. This is the pattern @traceai/mcp's version test uses since fix(npm): report the real package version and keep it in sync with releases #333.
  • claude-agent-sdk and pydantic-ai compare __version__ with the version in their pyproject.toml.
  • mcp-use's packaging test keeps the __version__ == pyproject version check and drops two "0.1.0" literals. The second literal duplicated that check.

Checks, all offline in the network-denied sandbox:

  • Every edited jest file passes: anthropic 3, beeai 6, cohere 36, google-adk 20, google-genai 30, groq 30, instructor 16, livekit 20, mistral 31, ollama 50, portkey 14, vertexai 17.
  • The old anthropic and beeai tests fail on dev.
  • Python: pydantic-ai 19, claude-agent-sdk 16 and mcp-use 8 passed.

test type, so release-please bumps nothing.

🤖 Generated with Claude Code

Release-please bumps package.json, version.ts and __version__ together, so a
test pinned to "0.1.0" fails on the first release. @traceai/anthropic 0.1.4
already fails its new native-boundary check this way, and beeai, google-adk,
instructor, livekit, ollama, portkey and vertexai report 0.1.1 while their
tests expect 0.1.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nik13
nik13 merged commit 7bf98db into dev Nov 1, 2026
16 checks passed
@nik13
nik13 deleted the test/manifest-version-assertions branch November 1, 2026 03:37
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