2021-06-15 10:21:01 +08:00

39 lines
916 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',
],
reactOptions: {
fastRefresh: true,
strictMode: true,
},
addons: [
{
name: '@storybook/addon-docs',
options: { transcludeMarkdown: true },
},
{ name: '@storybook/addon-essentials' },
'@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;