Skip to content

Support "additionalEntries" option in @cypress/webpack-dev-server (like @cypress/webpack-preprocessor) #17230

Open
@toaditoad

Description

@toaditoad

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CTIssue related to component testingnpm: @cypress/webpack-dev-server@cypress/webpack-dev-server package issuestype: featureNew feature that does not currently exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions