Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
istanbul-coverage-display
Advanced tools
React component which can be added to instrumentation build to display coverage report of testing.
React component which can be added to instrumentation build to display coverage report of testing.
To install
npm install istanbul-coverage-display
It has a peer dependency of React 16. This component should be part of the test build only. In the test build, you should be using babel-plugin-istanbul
to instrument the source code. This component has a peer (indirect) dependency on istanbul-lib-coverage
installed by babel-plugin-istanbul
.
Import using
import Coverage from 'istanbul-coverage-display';
This component adds a button to one of the four corner of the browser window to show coverage report. The position prop accepts four values: one of bottomLeft, topLeft, bottomRight, topRight. By default, the button is at the bottomLeft.
There is a demo project for this package. And there is a blog post with more details about why we need this.
Screenshot of the component display coverage report:
FAQs
React component which can be added to instrumentation build to display coverage report of testing.
The npm package istanbul-coverage-display receives a total of 18 weekly downloads. As such, istanbul-coverage-display popularity was classified as not popular.
We found that istanbul-coverage-display demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.