Skip to content

fix(coverage): prevent duplicate metrics caused by source map end column differences - #12040

Merged
sheremet-va merged 2 commits into
vitest-dev:mainfrom
AriPerkkio:fix/coverage-end-mappings
Nov 19, 2026
Merged

sheremet-va merged 2 commits into
vitest-dev:mainfrom
AriPerkkio:fix/coverage-end-mappings

Conversation

@AriPerkkio

@AriPerkkio AriPerkkio commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

@netlify

netlify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Built without sensitive environment variables

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

@flakiness-io

flakiness-io Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Test Results Summary

This comment shows the latest test results for this pull request.

Commit Status Test Results CI Runs
6fefc04 ❌ Failed 1 regressed · 23792 passed · 163 flaky · 859 skipped 24 runs

1 regressed

🔥 win 10.0.26100 · main test/e2e/test/public-mocker.test.ts:33 › autospy works correctly

⚠️ 163 flaky

⚠️ win 10.0.26100 · vmThreads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · vmThreads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · threads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ win 10.0.26100 · forks test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ Ubuntu 26.04 · forks test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ win 10.0.26100 · threads test/unit/test/retry.test.ts:55 › describe object add(1, 1) › returned value not be greater than 2
⚠️ win 10.0.26100 · vmThreads test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
⚠️ Ubuntu 26.04 · forks test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
⚠️ win 10.0.26100 · threads test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
⚠️ Ubuntu 26.04 · vmThreads test/unit/test/retry.test.ts:61 › describe object add(1, 1) › returned value not be less than 2
…and 153 more

View full report

ℹ️ About Flakiness.io in GitHub

Your team has set up Flakiness.io pull request comments. This comment is updated when

  • The first test results arrive for this pull request
  • A later run reports more results for the same commit
  • A new commit is pushed and tested

Flakiness.io rewrites the comment in place, so it always reflects the most recently tested commit.

Comment on lines +70 to +75
expect(statements).toMatchInlineSnapshot(`
[
"4:20 - 4:29 = 2",
"5:2 - 5:null = 2",
]
`)

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.

CI failure before fix https://github.com/vitest-dev/vitest/actions/runs/44520950431/job/135554242775

- Expected
+ Received

  [
    "4:20 - 4:29 = 2",
    "5:2 - 5:null = 2",
+   "4:20 - 4:null = 1",
  ]

@AriPerkkio
AriPerkkio force-pushed the fix/coverage-end-mappings branch from 12b48e2 to 6fefc04 Compare November 19, 2026 12:58
@AriPerkkio
AriPerkkio marked this pull request as ready for review November 19, 2026 13:08
@sheremet-va
sheremet-va merged commit 45d199c into vitest-dev:main Nov 19, 2026
49 of 52 checks passed
@AriPerkkio
AriPerkkio deleted the fix/coverage-end-mappings branch November 19, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants