Skip to content

chore: migrate vitest to v5 beta - #436

Draft
ocavue wants to merge 2 commits into
masterfrom
chore/migrate-vitest-v5
Draft

chore: migrate vitest to v5 beta#436
ocavue wants to merge 2 commits into
masterfrom
chore/migrate-vitest-v5

Conversation

@ocavue

@ocavue ocavue commented Aug 4, 2026

Copy link
Copy Markdown
Member

Migrate the test runner from vitest 4.1 to the 5.0 beta.

  • Bump vitest and @vitest/* packages to 5.0.0-beta.7.
  • Rewrite the benchmark files for the new in-test bench fixture API.
  • Patch vitest-browser-react (module-scope beforeEach cleanup) and vitest-browser-commands (iframe data-scale fallback) for v5 compatibility.
  • Replace vitest-fail-on-console with an inline setup that works on v5's browser runner.
  • Adapt tests to v5 behavior: strict toHaveTextContent (now toMatchTextContent for partial matches) and Playwright click hit-testing on hover-revealed toolbars.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
meowdown Ready Ready Preview Aug 4, 2026 4:35am

@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1b289d07-36f0-480d-8b39-315be670686b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ocavue
ocavue force-pushed the chore/migrate-vitest-v5 branch from ac9fbad to 5dbec93 Compare August 4, 2026 04:18
@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@meowdown/core@436
npm i https://pkg.pr.new/@meowdown/markdown@436
npm i https://pkg.pr.new/@meowdown/react@436

commit: cac4384

@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.01% 4687 / 5039
🔵 Statements 90.79% 5268 / 5802
🔵 Functions 90.37% 1127 / 1247
🔵 Branches 86.35% 3355 / 3885
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/converters/pm-to-md.bench.ts 0% 0% 0% 0% 15-31
packages/core/src/extensions/inline-mark-plugin.bench.ts 0% 100% 0% 0% 14-36
packages/core/src/extensions/reference-links-transaction.bench.ts 0% 0% 0% 0% 57-212
packages/react/src/testing/index.ts 100% 100% 100% 100%
packages/vitest/src/config.ts 0% 0% 0% 0% 5-85
packages/vitest/src/setup-console.ts 65% 25% 50% 66.66% 23-25, 35-38
Generated in workflow #1712 for commit cac4384 by the Vitest Coverage Report Action

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