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
The storybook test command should work with coverage and proper code instrumentation no matter if webpack, vite, rsbuild, or another bundler is used.
Screenshots and/or logs
All tests failing with error below
[Test runner] An error occurred when evaluating code coverage:
The code in this story is not instrumented, which means the coverage setup is likely not correct.
More info: https://github.com/storybookjs/test-runner#setting-up-code-coverage
Environment
OS: MacOS 13.0.1 Ventura
Node.js version: v20.12.2
NPM version: 10.5.0
Browser: N/A
Browser version: N/A
Device: N/A
The text was updated successfully, but these errors were encountered:
I think we need a general way to make storybook-build-builder could apply the webpack export easily someway. By achieving that, we could also resolve #92.
Cross-posting storybookjs/addon-coverage#48
Describe the bug
When upgrading to
storybook-react-rsbuild
fromwebpack
orvite
setup, the code instrumentation does not work properly to obtain code coverage.Dependencies:
Rsbuild config:
Storybook config:
Steps to reproduce the behavior
test-storybook -- --coverage
commandtest-storybook
commandExpected behavior
The storybook test command should work with coverage and proper code instrumentation no matter if webpack, vite, rsbuild, or another bundler is used.
Screenshots and/or logs
All tests failing with error below
[Test runner] An error occurred when evaluating code coverage: The code in this story is not instrumented, which means the coverage setup is likely not correct. More info: https://github.com/storybookjs/test-runner#setting-up-code-coverage
Environment
The text was updated successfully, but these errors were encountered: