-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
CTIssue related to component testingIssue related to component testingnpm: @cypress/webpack-dev-server@cypress/webpack-dev-server package issues@cypress/webpack-dev-server package issuestype: featureNew feature that does not currently existNew feature that does not currently exist
Description
What would you like?
I would like @cypress/webpack-dev-server to support "additionalEntries" option to bundle additional source files when executing component tests with Cypress 7.x. See example on https://github.com/toaditoad/code-coverage-mwe/blob/main/tests/cypress/plugins/index.ts that uses @cypress/webpack-preprocessor and Cypress 6.x.
Why is this needed?
I used to generate code coverage by leveraging the "additionalEntries" option of @cypress/webpack-preprocessor (with Cypress 6.9.1). This was necessary to report 0% coverage for source files that have not been touched by tests. See https://github.com/toaditoad/code-coverage-mwe for a now working minimal example.
denieler, piotrd, maiolica, nickrobillard and pawelgur
Metadata
Metadata
Assignees
Labels
CTIssue related to component testingIssue related to component testingnpm: @cypress/webpack-dev-server@cypress/webpack-dev-server package issues@cypress/webpack-dev-server package issuestype: featureNew feature that does not currently existNew feature that does not currently exist