Skip to content

Commit

Permalink
Also skip stories on Chromatic
Browse files Browse the repository at this point in the history
We would probably need to render these stories inside the manager UI for this to make sense in Chromatic (which detects errors)
  • Loading branch information
tmeasday authored Aug 13, 2018
1 parent deef786 commit a42250f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/official-storybook/stories/core.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ storiesOf('Core|Events', module).add('Force re-render', () => (

// Skip these stories in storyshots, they will throw -- NOTE: would rather do this
// via a params API, see https://github.com/storybooks/storybook/pull/3967#issuecomment-411616023
if (navigator && navigator.userAgent && !(navigator.userAgent.indexOf('jsdom') > -1)) {
if (
navigator &&
navigator.userAgent &&
!(navigator.userAgent.indexOf('jsdom') > -1) &&
!(navigator.userAgent.indexOf('Chromatic') > -1)
) {
storiesOf('Core|Errors', module)
.add('story throws exception', () => {
throw new Error('error');
Expand Down

0 comments on commit a42250f

Please sign in to comment.