Reputation: 239
I am using Jest addon in Storybook. https://github.com/storybookjs/storybook/tree/master/addons/jest
From the tutorial, it illustrates the test result in a prettier manner:
While in my implementation, the result is plain text:
Please advise how to configure.
import { addDecorator } from '@storybook/react'; // <- or your view layer
import { withTests } from '@storybook/addon-jest';
import results from '../.jest-test-results.json';
addDecorator(
withTests({
results,
})
);
Upvotes: 0
Views: 369
Reputation: 31
I think the screenshot is out of date, unfortunately. I'm seeing the same behaviour with Vue JS components
Upvotes: 1