How to use the @storybook/addon-storyshots.imageSnapshot function in @storybook/addon-storyshots

To help you get started, we’ve selected a few @storybook/addon-storyshots examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RocketChat / Rocket.Chat.Livechat / stories / index.js View on Github external
import '../src/styles';
import initStoryshots, { imageSnapshot } from '@storybook/addon-storyshots';

initStoryshots({
	suite: 'Storyshots',
	test: imageSnapshot({
		storybookUrl: 'http://localhost:9001',
	}),
});

@storybook/addon-storyshots

Take a code snapshot of every story automatically with Jest

MIT
Latest version published 3 months ago

Package Health Score

64 / 100
Full package analysis