Skip to content

feat(coverage): switch to @vitest/istanbuljs packages - #11053

Merged
AriPerkkio merged 2 commits into
vitest-dev:mainfrom
AriPerkkio:feat/vitest-istanbuljs
Aug 26, 2026
Merged

feat(coverage): switch to @vitest/istanbuljs packages#11053
AriPerkkio merged 2 commits into
vitest-dev:mainfrom
AriPerkkio:feat/vitest-istanbuljs

Conversation

@AriPerkkio

@AriPerkkio AriPerkkio commented Aug 24, 2026

Copy link
Copy Markdown
Member

Description

Resolves #9433

No breaking changes. Custom istanbuljs reporters work as before.

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

  • It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
  • Ideally, include a test that fails without this PR but passes with it.
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.
  • Please check Allow edits by maintainers to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

Tests

  • Run the tests with pnpm test:ci.

Documentation

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

@AriPerkkio
AriPerkkio force-pushed the feat/vitest-istanbuljs branch from a09556b to 83017fc Compare August 24, 2026 13:29
@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit a09556b
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a8c471920d90c0008c40635
😎 Deploy Preview https://deploy-preview-11053--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@AriPerkkio
AriPerkkio force-pushed the feat/vitest-istanbuljs branch from 83017fc to 2101720 Compare August 24, 2026 14:17
@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 64297c7
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6a8e7b4f733ad30008b7b5c5
😎 Deploy Preview https://deploy-preview-11053--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@AriPerkkio
AriPerkkio force-pushed the feat/vitest-istanbuljs branch 3 times, most recently from 4475550 to 7802bb4 Compare August 25, 2026 10:22
@AriPerkkio

Copy link
Copy Markdown
Member Author

/ecosystem-ci run

@vitest-ecosystem-ci

vitest-ecosystem-ci Bot commented Aug 25, 2026

Copy link
Copy Markdown

📝 Ran ecosystem CI: Open

suite result
aria-live-capture ✅ success
nuxt-test-utils ❌ failure
vitest-benchmark-large ❌ failure
vitest-browser-low-disk ✅ success
vitest-pool-workers ❌ failure
vitest-reporters-large ✅ success
vitest-coverage-large-node ✅ success
vitest-sonar-reporter ✅ success
chromatic ✅ success
vitest-pool-example ✅ success
vitest-browser-examples ✅ success
vitest-coverage-large-browser ✅ success
vitest-vscode ❌ failure
vitest-in-webcontainer ✅ success

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown
@vitest/browser

npm i https://pkg.pr.new/@vitest/browser@64297c7

@vitest/browser-playwright

npm i https://pkg.pr.new/@vitest/browser-playwright@64297c7

@vitest/browser-preview

npm i https://pkg.pr.new/@vitest/browser-preview@64297c7

@vitest/coverage-istanbul

npm i https://pkg.pr.new/@vitest/coverage-istanbul@64297c7

@vitest/coverage-v8

npm i https://pkg.pr.new/@vitest/coverage-v8@64297c7

@vitest/expect

npm i https://pkg.pr.new/@vitest/expect@64297c7

@vitest/mocker

npm i https://pkg.pr.new/@vitest/mocker@64297c7

@vitest/pretty-format

npm i https://pkg.pr.new/@vitest/pretty-format@64297c7

@vitest/snapshot

npm i https://pkg.pr.new/@vitest/snapshot@64297c7

@vitest/spy

npm i https://pkg.pr.new/@vitest/spy@64297c7

@vitest/ui

npm i https://pkg.pr.new/@vitest/ui@64297c7

@vitest/utils

npm i https://pkg.pr.new/@vitest/utils@64297c7

vitest

npm i https://pkg.pr.new/vitest@64297c7

@vitest/web-worker

npm i https://pkg.pr.new/@vitest/web-worker@64297c7

commit: 64297c7

@AriPerkkio
AriPerkkio force-pushed the feat/vitest-istanbuljs branch from 7802bb4 to dcc5ec1 Compare August 25, 2026 11:30
Comment on lines -61 to -68
parserPlugins: [
...istanbulDefaults.instrumenter.parserPlugins,
['importAttributes', { deprecatedAssertSyntax: true }],
],
generatorOpts: {
// @ts-expect-error missing type
importAttributesKeyword: 'with',
},

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Babel 8 supports this out of the box.

Comment on lines +1 to +3
import { ReportBase } from '@vitest/istanbul-lib-report'

export default class CustomReporter extends ReportBase {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We now support ESM custom coverage reporters

@AriPerkkio
AriPerkkio force-pushed the feat/vitest-istanbuljs branch from dcc5ec1 to f7419bf Compare August 25, 2026 11:52
@AriPerkkio
AriPerkkio marked this pull request as ready for review August 25, 2026 12:06
@AriPerkkio
AriPerkkio requested review from hi-ogawa and sheremet-va and removed request for hi-ogawa August 25, 2026 12:06
hi-ogawa
hi-ogawa previously approved these changes Aug 26, 2026

@hi-ogawa hi-ogawa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

awesome!

Comment thread docs/config/coverage.md Outdated
@AriPerkkio
AriPerkkio merged commit 5f6a5e8 into vitest-dev:main Aug 26, 2026
30 checks passed
@AriPerkkio
AriPerkkio deleted the feat/vitest-istanbuljs branch August 26, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fork istanbuljs/istanbuljs as @vitest/istanbuljs

3 participants