Socket
Socket
Sign inDemoInstall

@monorepo-template/cypress-coverage-plugin

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @monorepo-template/cypress-coverage-plugin

react-app-rewired override for Cypress test coverage


Version published
Weekly downloads
56
decreased by-34.12%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Cypress coverage plugin

The monorepo template's Cypress coverage plugin is a monkey-patch of Cypress's official code coverage plugin, adding pre-configuration of NYC and support for nyc.config.cjs.

Install

This package relies on both @cypress/code-coverage and cypress for runtime behavior and type definitions, respectively.

yarn add --dev "@cypress/code-coverage" "@monorepo-template/cypress-coverage-plugin" cypress

Use

In your Cypress plugin file (cypress/plugins/e2e.ts), import the plugin:

/// <reference types="cypress" />
import cypressCoveragePlugin from '@monorepo-template/cypress-coverage-plugin';

export default function cypressPlugins(
  on: Cypress.PluginEvents,
  config: Cypress.PluginConfigOptions,
): Cypress.PluginConfigOptions {
  return cypressCoveragePlugin(on, config);
}

FAQs

Last updated on 12 Jan 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc