We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage report fails when using pnpm as package manager. test-storybook command runs npx nyc .. internally which does not work
pnpm
test-storybook
npx nyc ..
pnpm test-storybook --coverage
Should not fail and nvm should be executed with pnpx ... instead of npx ... in a a pnpm project
pnpx ...
npx ...
$ pnpm test-storybook -c libs/ui/.storybook --url=http://localhost:4400 --coverage PASS browser: chromium libs/ui/src/lib/Button/Button.stories.tsx UI/Button Primary ✓ smoke-test (58 ms) PrimaryHover ✓ smoke-test (23 ms) PrimaryFocus ✓ smoke-test (19 ms) PrimaryDisabled ✓ smoke-test (18 ms) PrimaryLoading ✓ smoke-test (16 ms) Secondary ✓ smoke-test (16 ms) SecondaryHover ✓ smoke-test (17 ms) SecondaryFocus ✓ smoke-test (14 ms) SecondaryDisabled ✓ smoke-test (15 ms) SecondaryLoading ✓ smoke-test (12 ms) Tertiary ✓ smoke-test (15 ms) TertiaryHover ✓ smoke-test (14 ms) TertiaryFocus ✓ smoke-test (16 ms) TertiaryDisabled ✓ smoke-test (16 ms) TertiaryLoading ✓ smoke-test (15 ms) Coverage file (26504 bytes) written to .nyc_output/coverage.json Test Suites: 1 passed, 1 total Tests: 15 passed, 15 total Snapshots: 0 total Time: 1.941 s, estimated 4 s Ran all test suites. sh: nyc: command not found node:internal/errors:868 const err = new Error(message); ^ Error: Command failed: npx nyc report --reporter=text -t /{pathtoproject}/coverage/storybook --report-dir /{pathtoproject}/coverage/storybook at checkExecSyncError (node:child_process:885:11) at execSync (node:child_process:957:15) at reportCoverage (/{pathtoproject}/node_modules/.pnpm/@[email protected]_daqb7etzijemrfnwu5gw5hgeli/node_modules/@storybook/test-runner/bin/test-storybook.js:81:3) at process.onProcessEnd (/{pathtoproject}/node_modules/.pnpm/@[email protected]_daqb7etzijemrfnwu5gw5hgeli/node_modules/@storybook/test-runner/bin/test-storybook.js:88:3) at process.emit (node:events:525:35) { status: 127, signal: null, output: [ null, null, null ], pid: 91161, stdout: null, stderr: null } Node.js v18.13.0
The text was updated successfully, but these errors were encountered:
Maybe useful resource for package manager detection: https://github.com/nrwl/nx/blob/master/packages/nx/src/utils/package-manager.ts
Sorry, something went wrong.
🚀 Issue was released in v0.14.0 🚀
v0.14.0
Successfully merging a pull request may close this issue.
Describe the bug
Coverage report fails when using
pnpm
as package manager.test-storybook
command runsnpx nyc ..
internally which does not workSteps to reproduce the behavior
pnpm test-storybook --coverage
Expected behavior
Should not fail and nvm should be executed with
pnpx ...
instead ofnpx ...
in a a pnpm projectScreenshots and/or logs
Environment
The text was updated successfully, but these errors were encountered: