Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

istanbul-coverage-display

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

istanbul-coverage-display - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

package.json
{
"name": "istanbul-coverage-display",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.cjs.js",

@@ -21,4 +21,3 @@ "module": "dist/index.esm.js",

"peerDependencies": {
"react": "^16.7.0",
"istanbul-lib-coverage": "^2.0.1"
"react": "^16.0.0"
},

@@ -25,0 +24,0 @@ "scripts": {

18

README.md
# istanbul-coverage-display
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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc