mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
18 lines
383 B
JavaScript
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>
|
|
));
|