2019-04-26 18:32:52 -04:00

24 lines
653 B
TypeScript

import { configure, addParameters, addDecorator } from '@storybook/angular';
import addCssWarning from '../src/cssWarning';
import { withA11y } from '@storybook/addon-a11y';
addDecorator(withA11y);
addCssWarning();
addParameters({
options: {
hierarchyRootSeparator: /\|/,
},
});
function loadStories() {
// put welcome screen at the top of the list so it's the first one displayed
require('../src/stories');
// automatically import all story ts files that end with *.stories.ts
const req = require.context('../src/stories', true, /\.stories\.ts$/);
req.keys().forEach(filename => req(filename));
}
configure(loadStories, module);