Gert Hengeveld c066f12885 Setup
2021-09-09 11:41:48 +02:00

41 lines
1011 B
TypeScript

/// <reference types="node" />
import type { StorybookConfig } from '@storybook/react/types';
const config: StorybookConfig = {
stories: [
// FIXME: Breaks e2e tests './intro.stories.mdx',
'../../lib/ui/src/**/*.stories.@(js|tsx|mdx)',
'../../lib/components/src/**/*.stories.@(js|tsx|mdx)',
'./stories/**/*stories.@(js|ts|tsx|mdx)',
'./../../addons/docs/**/*.stories.tsx',
// './../../addons/interactions/**/*.stories.tsx',
],
reactOptions: {
fastRefresh: true,
strictMode: true,
},
addons: [
{
name: '@storybook/addon-docs',
options: { transcludeMarkdown: true },
},
{ name: '@storybook/addon-essentials' },
// '@storybook/addon-interactions',
'@storybook/addon-storysource',
'@storybook/addon-links',
'@storybook/addon-a11y',
'@storybook/addon-jest',
'@storybook/addon-graphql',
],
core: {
builder: 'webpack4',
},
logLevel: 'debug',
features: {
previewCsfV3: true,
},
};
module.exports = config;