mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 06:11:05 +08:00
18 lines
374 B
JavaScript
18 lines
374 B
JavaScript
import React from 'react';
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
import { withTests } from '@storybook/addon-jest';
|
|
import results from './addon-jest.testresults.json';
|
|
|
|
storiesOf('Addons|jest', module)
|
|
.addDecorator(withTests({ results }))
|
|
.add(
|
|
'withTests',
|
|
() => (
|
|
<div>
|
|
<p>Hello</p>
|
|
</div>
|
|
),
|
|
{ jest: 'addon-jest' }
|
|
);
|