
A Vite plugin to instrument code for nyc/istanbul code coverage. In similar way as the Webpack Loader istanbul-instrumenter-loader. Only intended for use in development.
The Vite Plugin Istanbul is a game-changer for developers looking to incorporate code coverage into their testing processes efficiently. Designed specifically for Vite, this plugin integrates seamlessly to provide code instrumentation using the popular NYC/Istanbul tools, enabling developers to assess their code’s execution during tests. By prioritizing usability, this plugin only targets development environments where it matters most, ensuring that performance and memory footprints remain optimal.
This tool is perfect for projects that demand robust testing frameworks and are already employing Vite as their build tool. With its straightforward installation and configurable options, the Vite Plugin Istanbul not only simplifies the process of measuring code quality but also establishes a clear pathway for new maintainers to contribute to its ongoing development.
cwd, include, and exclude to fine-tune which files to instrument, giving developers flexibility based on their project needs..js, .ts, .jsx, and more, allowing for a broad coverage across your codebase.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects
RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.
TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.