2017-12-26 16:32:18 +02:00
|
|
|
import path from 'path';
|
|
|
|
import initStoryshots, { multiSnapshotWithOptions } from '@storybook/addon-storyshots';
|
|
|
|
|
2018-09-17 18:57:15 +03:00
|
|
|
jest.mock('./addon-jest.testresults.json', () => ({}), { virtual: true });
|
2019-11-01 23:59:47 +08:00
|
|
|
jest.mock('./documentation.json', () => ({}), { virtual: true });
|
2019-04-25 22:54:53 +02:00
|
|
|
jest.mock('./environments/environment', () => ({}), { virtual: true });
|
2018-09-17 18:57:15 +03:00
|
|
|
|
2017-12-26 16:32:18 +02:00
|
|
|
initStoryshots({
|
|
|
|
framework: 'angular',
|
2018-04-15 10:17:02 +03:00
|
|
|
integrityOptions: { cwd: path.join(__dirname, 'src', 'stories') },
|
2017-12-26 16:32:18 +02:00
|
|
|
configPath: path.join(__dirname, '.storybook'),
|
2018-06-11 02:51:24 +03:00
|
|
|
test: multiSnapshotWithOptions(),
|
2017-12-26 16:32:18 +02:00
|
|
|
});
|