Skip to content

fix(test): run release-bump smoke tests under vitest, not node:test#7

Open
farce1 wants to merge 1 commit into
mainfrom
fix/vitest-release-bump-runner
Open

fix(test): run release-bump smoke tests under vitest, not node:test#7
farce1 wants to merge 1 commit into
mainfrom
fix/vitest-release-bump-runner

Conversation

@farce1

@farce1 farce1 commented Jun 14, 2026

Copy link
Copy Markdown
Owner

What

The Frontend Checks CI job (bun run test) was failing on every branch — not a maintainer placeholder, a real bug:

FAIL scripts/release-bump.test.mjs
Error: No test suite found in file .../scripts/release-bump.test.mjs

scripts/release-bump.test.mjs imported test from node:test, but vite.config.ts globs scripts/**/*.test.mjs into the vitest "node" project. vitest imported the file, found no vitest-registered suite, and failed the run (its 6 tests were silently executing under the node:test runner instead). The sibling scripts/benchmark-models.prompts.test.mjs already uses vitest, so vitest is the convention.

Fix

Import test from vitest instead of node:test. The node:assert/strict assertions are unchanged — they throw on failure, which vitest reports as a failed test, so no assertion rewrite is needed.

Verification

  • bun run test8 files / 44 tests pass (release-bump's 6 smoke tests now run under vitest).
  • bun run build → succeeds (tsc + vite).

This turns the Frontend Checks job green. (Rust Checks and Release Config Check remain red on the maintainer-only blockers: uncommitted vendor/vc_redist.x64.exe and the REPLACE_WITH_ SHA256/pubkey placeholders.)

Code-only, no dependency changes.

scripts/release-bump.test.mjs imported `test` from node:test, but the vitest
config globs scripts/**/*.test.mjs — vitest found no suite and failed the run
("No test suite found"), turning the Frontend Checks CI job red. Import `test`
from vitest instead; node:assert assertions still report failures correctly.
All 6 release-bump smoke tests now run under the project suite.
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