Skip to content

Support V8 code coverage in the Workers Vitest integration - #15591

Open
dario-piotrowicz wants to merge 1 commit into
mainfrom
dario/vitest-plugin-v8-coverage
Open

dario-piotrowicz wants to merge 1 commit into
mainfrom
dario/vitest-plugin-v8-coverage

Conversation

@dario-piotrowicz

@dario-piotrowicz dario-piotrowicz commented Sep 10, 2026

Copy link
Copy Markdown
Member

This PR enables the v8 code coverage for the vitest plugin

Example run:
Screenshot 2026-09-10 at 12 54 22


A picture of a cute animal (not mandatory, but encouraged)

@changeset-bot

changeset-bot Bot commented Sep 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0a9310e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/vitest-plugin Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ask-bonk

ask-bonk Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@pkg-pr-new

pkg-pr-new Bot commented Sep 10, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@15591

@cloudflare/build-output-utils

npm i https://pkg.pr.new/@cloudflare/build-output-utils@15591

@cloudflare/codemods

npm i https://pkg.pr.new/@cloudflare/codemods@15591

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@15591

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@15591

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@15591

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@15591

miniflare

npm i https://pkg.pr.new/miniflare@15591

@cloudflare/pages-functions

npm i https://pkg.pr.new/@cloudflare/pages-functions@15591

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@15591

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@15591

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@15591

@cloudflare/vitest-plugin

npm i https://pkg.pr.new/@cloudflare/vitest-plugin@15591

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@15591

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@15591

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@15591

wrangler

npm i https://pkg.pr.new/wrangler@15591

commit: 0a9310e

@dario-piotrowicz
dario-piotrowicz marked this pull request as ready for review September 10, 2026 15:19
@workers-devprod
workers-devprod requested review from a team and petebacondarwin and removed request for a team September 10, 2026 15:19
@workers-devprod

workers-devprod commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • ✅ @cloudflare/wrangler
Show detailed file reviewers

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Devin Review: 1 flag

Not posted on this PR by your GitHub settings — view it in Devin Review. (Configure)

Devin Review

`,
"index.test.ts": dedent /* javascript */ `
import { greeting } from "./src/greeting";
import { expect, it } from "vitest";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT:

Fixture bypasses context-provided assertions
The new fixture imports expect from Vitest instead of using the test context. Package guidance explicitly requires context-provided assertions.

@workers-devprod workers-devprod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codeowners reviews satisfied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

3 participants