mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-22 05:02:18 +08:00
13 lines
460 B
JavaScript
13 lines
460 B
JavaScript
import path from 'path';
|
|
import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';
|
|
|
|
jest.mock('./addon-jest.testresults.json', () => ({}), { virtual: true });
|
|
jest.mock('environments/environment', () => ({}), { virtual: true });
|
|
|
|
initStoryshots({
|
|
framework: 'angular',
|
|
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
|
|
configPath: path.join(__dirname, '.storybook'),
|
|
test: multiSnapshotWithOptions(),
|
|
});
|