Skip to content

fix(coverage): transform untested files with correct project - #11870

Merged
sheremet-va merged 2 commits into
vitest-dev:mainfrom
AriPerkkio:fix/coverage-projects-uncovered-roots
Nov 4, 2026
Merged

sheremet-va merged 2 commits into
vitest-dev:mainfrom
AriPerkkio:fix/coverage-projects-uncovered-roots

Conversation

@AriPerkkio

Copy link
Copy Markdown
Member

Fixes #11851

@netlify

netlify Bot commented Nov 4, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit feacf09
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6aead72ee2f8ff82837a71ff
😎 Deploy Preview https://deploy-preview-11870--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.

Comment on lines +28 to +37
expect(functionNames).toMatchInlineSnapshot(`
{
"<process-cwd>/fixtures/workspaces/prefix-roots/app-utils/src/untested.ts": [
"transformedByAppUtils",
],
"<process-cwd>/fixtures/workspaces/prefix-roots/app/src/untested.ts": [
"transformedByApp",
],
}
`)

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.

Failure without the fix:

Image

@sheremet-va
sheremet-va merged commit 8329803 into vitest-dev:main Nov 4, 2026
31 checks passed
@AriPerkkio
AriPerkkio deleted the fix/coverage-projects-uncovered-roots branch November 4, 2026 08:51
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Coverage transforms an untested file with a project whose root is a string prefix of its own

2 participants