Skip to content

nyc does not load get-module-type #321

Closed
@bahmutov

Description

@bahmutov

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreleased

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions