14 lines
329 B
TypeScript
Raw Normal View History

2019-12-09 09:47:51 +02:00
import { configure, addDecorator } from '@storybook/react';
import storyDecorator from './storyDecorator';
const req = require.context('../packages/app', true, /\.story\.[tj]sx?$/);
function loadStories() {
2020-05-24 02:08:24 +03:00
req.keys().forEach((filename) => req(filename));
2019-12-09 09:47:51 +02:00
}
addDecorator(storyDecorator);
configure(loadStories, module);