fbredius/storybook

View on GitHub
examples/html-kitchen-sink/stories/addon-jest.stories.js

Summary

Maintainability
A
0 mins
Test Coverage
import { withTests as wt } from '@storybook/addon-jest';
import results from './addon-jest.testresults.json';

export default {
  title: 'Addons/Jest',
  decorators: [wt({ results })],
};

export const WithTests = () => 'This story shows test results';
WithTests.parameters = { jest: 'addon-jest' };