@vitest/istanbul-lib-instrument
v1.0.1
Published
Core istanbul API for JS code coverage
Readme
@vitest/istanbul-lib-instrument
Istanbul instrumenter library, implemented using Babel. The implementation is inspired
by prior art by @dtinth as demonstrated in the __coverage__ babel plugin.
It provides 2 "modes" of instrumentation.
An
InstrumenterAPI that performs the instrumentation using babel as a library.A
programVisitorfunction for the Babel AST that can be used by a Babel plugin to emit instrumentation for ES6 code directly without any source map processing. This is the preferred path for babel users. The Babel plugin is calledbabel-plugin-istanbul.
