[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: clarify how istanbul coverage works (#10652)

Co-authored-by: Ari Perkkiö <ari.perkkio@gmail.com>

authored by

Willow (GHOST)
Ari Perkkiö
and committed by
GitHub
(Jun 28, 2026, 12:24 PM +0300) 31fb6020 44b27d8f

+2 -6
+2 -6
docs/guide/coverage.md
··· 81 81 82 82 ## Istanbul Provider 83 83 84 - [Istanbul code coverage tooling](https://istanbul.js.org/) has existed since 2012 and is very well battle-tested. 85 - This provider works on any Javascript runtime as coverage tracking is done by instrumenting user's source files. 86 - 87 - In practice, instrumenting source files means adding additional Javascript in user's files: 84 + [Istanbul code coverage tooling](https://istanbul.js.org/) has existed since 2012 and is very well battle-tested. This provider works on any JavaScript runtime as coverage tracking works by transforming your source code to add instrumentation logic. In practice, the code Vitest will end up running looks something like this: 88 85 89 86 ```js 90 87 // Simplified example of branch and function coverage counters ··· 116 113 - ✅ Works on any Javascript runtime 117 114 - ✅ Widely used and battle-tested for over 13 years. 118 115 - ✅ In some cases faster than V8. Coverage instrumentation can be limited to specific files, as opposed to V8 where all modules are instrumented. 119 - - ❌ Requires pre-instrumentation step 116 + - ❌ Source code is transformed to add instrumentation before running 120 117 - ❌ Execution speed is slower than V8 due to instrumentation overhead 121 - - ❌ Instrumentation increases file sizes 122 118 - ❌ Memory usage is higher than V8 123 119 124 120 <div style="display: flex; flex-direction: column; align-items: center; padding: 2rem 0; max-width: 20rem;">