Skip to content

Commit

Permalink
Merge pull request #1129 from storybooks/fix-storyshots-info-combo
Browse files Browse the repository at this point in the history
ADD a global to storyshots to make it work for series with info addon
  • Loading branch information
ndelangen authored May 25, 2017
2 parents 0a81bc6 + 6be44e9 commit 93f17b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/knobs/src/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ export default class Panel extends React.Component {
this.options = options;

if (options.debounce) {
this.emitChange = debounce(this.emitChange, options.debounce.wait, { leading: options.debounce.leading });
this.emitChange = debounce(this.emitChange, options.debounce.wait, {
leading: options.debounce.leading,
});
}
}

Expand Down
1 change: 1 addition & 0 deletions addons/storyshots/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"dependencies": {
"babel-runtime": "^6.23.0",
"global": "^4.3.2",
"prop-types": "^15.5.8",
"read-pkg-up": "^2.0.0"
},
Expand Down
2 changes: 2 additions & 0 deletions addons/storyshots/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from 'path';
import global from 'global';
import readPkgUp from 'read-pkg-up';
import addons from '@storybook/addons';
import runWithRequireContext from './require_context';
Expand All @@ -10,6 +11,7 @@ export { snapshotWithOptions, snapshot, renderOnly } from './test-bodies';

let storybook;
let configPath;
global.STORYBOOK_REACT_CLASSES = global.STORYBOOK_REACT_CLASSES || {};

const babel = require('babel-core');

Expand Down

0 comments on commit 93f17b2

Please sign in to comment.