Skip to content
New issue

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

Run nyc with correct packager manager command #364

Merged
merged 4 commits into from
Oct 24, 2023

Conversation

yannbf
Copy link
Member

@yannbf yannbf commented Oct 12, 2023

Closes #266

Originally created by @ferdinandhummel-gph in #271.

This PR introduces a fix to the coverage functionality of the test-runner, where the nyc command is run using the correct package manager exec command. This fixes compatibility with package managers other than npm, such as yarn or pnpm.

Only reason I'm creating this PR is to allow for the canary release workflow to be done, which wasn't possible in the fork from the previous PR. Thank you @ferdinandhummel-gph !

For the ones interested, please try the canary and provide feedback:

@storybook/test-runner@0.13.1--canary.271.8c62e28.0
📦 Published PR as canary version: 0.13.1--canary.364.06c986a.0

✨ Test out this PR locally via:

npm install @storybook/test-runner@0.13.1--canary.364.06c986a.0
# or 
yarn add @storybook/test-runner@0.13.1--canary.364.06c986a.0

Version

Published prerelease version: v0.13.1-next.2

Changelog

🐛 Bug Fix

🏠 Internal

📝 Documentation

  • Docs: Expand ejected config docs with an example #363 (@yannbf)

Authors: 4

@yannbf yannbf added the patch Increment the patch version when merged label Oct 12, 2023
@socket-security
Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@storybook/addon-coverage 0.0.7...0.0.6 None +0/-0 23.5 kB yannbf

@Marvellanius
Copy link

This seems to have worked splendidly for us, running it with pnpm! (on the same team as @watcher46)

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (35fc7d5) 76.66% compared to head (06c986a) 76.66%.

Additional details and impacted files
@@           Coverage Diff           @@
##             next     #364   +/-   ##
=======================================
  Coverage   76.66%   76.66%           
=======================================
  Files          11       11           
  Lines         180      180           
  Branches       40       40           
=======================================
  Hits          138      138           
  Misses         42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yannbf
Copy link
Member Author

yannbf commented Oct 24, 2023

Thank you so much for testing it out @Marvellanius !! I'll merge and release

@yannbf yannbf merged commit 2d1c980 into next Oct 24, 2023
12 checks passed
@yannbf yannbf mentioned this pull request Nov 8, 2023
Copy link

github-actions bot commented Nov 8, 2023

🚀 PR was released in v0.14.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted patch Increment the patch version when merged released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test-storybook --coverage cmd fails with pnpm
3 participants