2018-10-03 00:50:39 -07:00

19 lines
441 B
JavaScript

import { configure, addDecorator } from '@storybook/ember';
import { withOptions } from '@storybook/addon-options';
addDecorator(
withOptions({
hierarchySeparator: /\/|\./,
hierarchyRootSeparator: /\|/,
})
);
function loadStories() {
require('../stories/index.stories');
const req = require.context('../stories', true, /\.stories\.js$/);
req.keys().forEach(filename => req(filename));
}
configure(loadStories, module);