Skip to content

Add excludeAfterRemap option for c8 coverage #3818

@RebeccaStevens

Description

@RebeccaStevens

Clear and concise description of the problem

The option --exclude-after-remap can't currently be set in vite.config.ts.

Suggested solution

Add excludeAfterRemap as an option to the test.coverage config for provider v8.

Alternative

Use the c8 provider or run vitest as c8 vitest run and a .c8rc.json config file.

Additional context

The c8 provider currently supports excludeAfterRemap but TypeScript complains about it not being a valid option.

Also: #3813

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat: coverageIssues and PRs related to the coverage featurep2-edge-caseBug, but has workaround or limited in scope (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions