-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Update story shots docs and fix a typo in the API #1421
Conversation
Generated by 🚫 dangerJS |
Codecov Report
@@ Coverage Diff @@
## master #1421 +/- ##
=======================================
Coverage 14.35% 14.35%
=======================================
Files 201 201
Lines 4612 4612
Branches 622 551 -71
=======================================
Hits 662 662
- Misses 3422 3486 +64
+ Partials 528 464 -64
Continue to review full report at Codecov.
|
@@ -56,7 +56,8 @@ export default function testStorySnapshots(options = {}) { | |||
throw new Error('testStorySnapshots is intended only to be used inside jest'); | |||
} | |||
|
|||
const suit = options.suit || 'Storyshots'; | |||
// NOTE: keep `suit` typo for backwards compatibility | |||
const suite = options.suite || options.suit || 'Storyshots'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
|
||
```sh | ||
npm run test-storybook | ||
npm test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was incorrect all along?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndelangen i'd bet it started out this way and then the tool changed and the docs got stale
Issue: #1396
What I did
Fixed the documentation -- there is no storyshots binary
Also
suit
option should besuite
How to test