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

Update story shots docs and fix a typo in the API #1421

Merged
merged 2 commits into from
Jul 7, 2017

Conversation

shilman
Copy link
Member

@shilman shilman commented Jul 6, 2017

Issue: #1396

What I did

Fixed the documentation -- there is no storyshots binary

Also suit option should be suite

How to test

npm run bootstrap:test-cra
npm test

@storybookbot
Copy link
Collaborator

Fails
🚫

PR is not labeled with one of: ["cleanup","breaking","feature","bug","documentation","maintenance","greenkeeper","other"]

Generated by 🚫 dangerJS

@codecov
Copy link

codecov bot commented Jul 6, 2017

Codecov Report

Merging #1421 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           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
Impacted Files Coverage Δ
addons/storyshots/src/index.js 0% <0%> (ø) ⬆️
lib/ui/src/modules/ui/components/layout/usplit.js 38.7% <0%> (ø) ⬆️
lib/ui/src/modules/api/configs/init_api.js 40.47% <0%> (ø) ⬆️
.../ui/src/modules/ui/components/left_panel/header.js 27.58% <0%> (ø) ⬆️
addons/info/src/components/markdown/code.js 0% <0%> (ø) ⬆️
addons/knobs/src/components/types/Select.js 7.93% <0%> (ø) ⬆️
addons/knobs/src/components/types/Boolean.js 11.62% <0%> (ø) ⬆️
app/react/src/client/preview/config_api.js 0% <0%> (ø) ⬆️
lib/ui/src/modules/api/actions/api.js 49.42% <0%> (ø) ⬆️
app/react/src/client/preview/error_display.js 0% <0%> (ø) ⬆️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0df780...febca3f. Read the comment docs.

@ndelangen ndelangen added the cleanup Minor cleanup style change that won't show up in release changelog label Jul 6, 2017
@@ -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';
Copy link
Member

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
Copy link
Member

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?

Copy link
Member Author

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

@shilman shilman merged commit 70baad6 into master Jul 7, 2017
@ndelangen ndelangen deleted the 1396-storyshots-docs branch July 7, 2017 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Minor cleanup style change that won't show up in release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants