You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test Suites: 3 passed, 3 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 1.711 s, estimated 2 s
Ran all test suites.
Coverage file (2 bytes) written to .nyc_output/coverage.json
Describe the bug
npx create-next-app@latest
npx sb init --builder webpack5
npm install --save-dev @storybook/nextjs@next
.storybook/main.js
with the following line:framework: '@storybook/nextjs',
(as documented on https://storybook.js.org/docs/8.0/get-started/nextjs)npm install @storybook/test-runner --save-dev
"test-storybook": "test-storybook"
to the scripts in package.jsonnpm install @storybook/addon-coverage --save-dev
npm run storybook
npm run test-storybook -- --coverage
npx nyc report -t coverage/storybook/
Result:
PASS browser: chromium src/stories/Header.stories.js
PASS browser: chromium src/stories/Button.stories.js
PASS browser: chromium src/stories/Page.stories.js
Test Suites: 3 passed, 3 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 1.711 s, estimated 2 s
Ran all test suites.
Coverage file (2 bytes) written to .nyc_output/coverage.json
To Reproduce
No response
System
Additional context
The issue seems to be introduced with
@storybook/nextjs@7.6.0-alpha.5
. The coverage reporting works fine up until@storybook/nextjs@7.6.0-alpha.4
:Output of
$ npx nyc report -t coverage/storybook/
:The text was updated successfully, but these errors were encountered: