Closed
Description
When using cypress-react-unit-test noticed a blocking error:
nyc
could not require get-module-type
dependency.
Trying to disable the code coverage using env: coverage: false
did not solve the problem, because nyc
require is eager
// cypress-react-unit-test/plugins/load-webpack/index.js
require('@cypress/code-coverage/task')(on, config)
project https://github.com/bahmutov/react-testing-rails-webpacker
It would be nice if nyc
require was only done when it was needed for reporting