2017-12-27 10:41:31 +01:00

18 lines
383 B
JavaScript

import React from 'react';
import { storiesOf } from '@storybook/react';
import { withTests } from '@storybook/addon-jest';
import results from './addon-jest.testresults.json';
const withTestsFiles = withTests({
results,
});
storiesOf('Addons|jest', module)
.addDecorator(withTestsFiles('addon-jest'))
.add('withTests', () => (
<div>
<p>Hello</p>
</div>
));