generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Coverage is not reported for files where JSX is used.
I've set up a minimal repository that recreates the issue with the same config - https://github.com/jMalojlo/sb-repro.
It's a basic button component with a story containing a play function to 'test' a click handler.
The component itself contains some JSX and imports some jsx and non-jsx module. What we see in the coverage report is that only the files without JSX are properly counted.
We're running an ejected CRA and I assume it's a Babel config issue, but can't figure this out myself.
Steps to reproduce the behavior
- Clone https://github.com/jMalojlo/sb-repro
npm install&&npx playwright install chromenpm run storybooknpm run storybook-testruns tests with--coveragenpm run generate-storybook-coveragenyc report with lcovopen ./coverage/storybook/lcov-report/index.htmlto inspect the coverage HTML file-
Environment
- Node.js version: 20.9.0
- NPM version: 10.1.0
supersonicclay and cameronthrntn
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working