Skip to content

Commit

Permalink
Fixed setupTests.js
Browse files Browse the repository at this point in the history
Fixed "info addon and storyshot seem to be incompatible"
storybookjs/storybook#1011
  • Loading branch information
kotarella1110 committed Jul 20, 2018
1 parent b0a501d commit 11ff499
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

// https://github.com/storybooks/storybook/issues/1011
jest.mock('@storybook/addon-info', () => ({
withInfo: () => storyFn => storyFn,
setDefaults: () => {},
}));

configure({ adapter: new Adapter() });

0 comments on commit 11ff499

Please sign in to comment.