Interface for custom coverage instrumenters.
Matches the subset of istanbul-lib-instrument's Instrumenter that Vitest actually uses. Implement this to plug in a faster instrumenter while keeping the Istanbul coverage pipeline for collection, merging, and reporting.
Instrumenter
Instrument source code synchronously. Returns the instrumented code string.
Get the Istanbul-compatible file coverage object of the last instrumented file.
Get the source map of the last instrumented file.
Interface for custom coverage instrumenters.
Matches the subset of istanbul-lib-instrument's
Instrumenterthat Vitest actually uses. Implement this to plug in a faster instrumenter while keeping the Istanbul coverage pipeline for collection, merging, and reporting.