@monorepo-template/cypress-coverage-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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);
}

Readme

Keywords

none

Package Sidebar

Install

npm i @monorepo-template/cypress-coverage-plugin

Weekly Downloads

6

Version

1.0.7

License

MIT

Unpacked Size

4.2 kB

Total Files

6

Last publish

Collaborators

  • charlesstover