BayOtter
BayOtter

Reputation: 239

Jest output is not rendered as expected in Storybook

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:

enter image description here

While in my implementation, the result is plain text:

enter image description here

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

Answers (1)

Ben
Ben

Reputation: 31

I think the screenshot is out of date, unfortunately. I'm seeing the same behaviour with Vue JS components

Upvotes: 1

Related Questions