Skip to content

Incomplete coverage report? #22

@FezVrasta

Description

@FezVrasta

Hi, thanks for the library.

For some reason some React components that are part of the pages I'm testing don't result covered, here's an example.

CleanShot 2024-04-18 at 4  47 06@2x

The export is marked as covered but the component itself doesn't, but I am 100% sure the component is being rendered in the page. I tried to throw new Error("nyc") from it and the test failed with the expected error message.

I'm using Next.js 13.5.4 with swc-plugin-coverage-instrument.

Do you know what could be going on here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions