Skip to content

chore(js): upgrade vitest and coverage-v8 to 5 - #86

Open
g4bri3lDev wants to merge 1 commit into
mainfrom
chore/vitest-5
Open

g4bri3lDev wants to merge 1 commit into
mainfrom
chore/vitest-5

Conversation

@g4bri3lDev

Copy link
Copy Markdown
Member

Supersedes #82 and #84, which Dependabot opened separately but which must land together: vitest and @vitest/coverage-v8 need matching major versions.

Changes

  • vitest and @vitest/coverage-v8: ^3.2.7 → ^5.0.3.
  • vitest.config.ts: exclude src/wasm-core/** and src/**/*.d.ts from coverage. With vitest 5, coverage tries to parse the generated wasm-bindgen declaration files and logs a RolldownError: Parse failed … Missing initializer in const declaration on ambient declarations like export const memory: WebAssembly.Memory;. They're generated output, not code under test.

CI doesn't run coverage, so this wouldn't have shown up in the checks on #84.

Verification

  • bun run type-check passes.
  • bun run test: 74 passed.
  • bun run test:coverage runs with no parse errors (98.8% statements, 100% lines; same as before).
  • bun run build succeeds.

Once this is merged, Dependabot closes #82 and #84 automatically.

Combines Dependabot's #82 (vitest) and #84 (@vitest/coverage-v8): the two
must move together. Also excludes generated wasm-bindgen output and .d.ts
files from coverage — vitest 5's coverage tries to parse them and logs a
RolldownError on ambient declarations (`export const memory: ...;`).

This branch has not been deployed

No deployments
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