bahmutov / cra-ts-code-coverage-example

React App with TypeScript and Cypress code coverage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing steps in docs

coryhouse opened this issue · comments

The docs omit 2 necessary steps:

  1. Add require("@cypress/code-coverage/task")(on, config); to plugins/index.js.
  2. Add import "@cypress/code-coverage/support"; to support/index.js.

Thanks for this repo! Once added these 2 lines my project ran fine.