storybook/examples/angular-cli/angularshots.test.js
Norbert de Langen fef21c26a7
Merge branch 'master' into tech/overhaul-ui
# Conflicts:
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/jest/src/register.js
#	addons/knobs/src/components/types/Array.js
#	addons/notes/package.json
#	addons/notes/src/index.js
#	addons/storyshots/storyshots-core/package.json
#	lib/channel-websocket/package.json
#	lib/components/package.json
#	lib/components/src/layout/desktop.js
#	lib/ui/package.json
#	lib/ui/src/modules/api/actions/api.js
#	lib/ui/src/modules/shortcuts/actions/shortcuts.js
#	lib/ui/src/modules/ui/components/stories_panel/index.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.test.js
#	lib/ui/src/modules/ui/containers/header.js
#	lib/ui/src/modules/ui/containers/layout.js
#	lib/ui/src/modules/ui/libs/filters.js
#	yarn.lock
2018-10-11 11:21:31 +02:00

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(),
});