Skip to content

Exclude Files in Coverage Config #1400

Description

@mjaworski-eab

There seems to be some issue with coverageConfig.exclude. It is part of the finalConfig which is passed out of parseConfig.js, but does not seem to exclude files from the coverage report (reporter: json).

If I provide this configuration, I still get files in __wds-outside-root__ in my coverage report.

export default ({
  nodeResolve: true,
  coverageConfig: {
    report: true,
    reportDir: 'coverage',
    exclude: ['**/node_modules/**/*', '**/web_modules/**/*', '**/__wds-outside-root__/**/*'],
    reporters: ['text-summary', 'json-summary']
  }
});

We have many components and want to collect coverage on each independently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions