playwright-test-coverage icon indicating copy to clipboard operation
playwright-test-coverage copied to clipboard

Incomplete coverage report?

Open FezVrasta opened this issue 1 year ago • 0 comments

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?

FezVrasta avatar Apr 18 '24 14:04 FezVrasta