Feature/storybook tests * feature: add interaction tests for storybook and upgrade storybook@9 * add a11y testing for storybook * Merge branch 'master' of bitbucket.org:scandic-swap/web into feature/storybook-tests * Test and build only required packages * . * . * . * . * . * . * . * disable playwright tests in netlify ci * . * debug out process.env * don't run playwright on CI * remove unused netlify-plugin-playwright-cache * . * . * . * . * . * . * remove turbo dependancy to design-system#test * merge * merge Approved-by: Anton Gunnarsson
23 lines
682 B
TypeScript
23 lines
682 B
TypeScript
import { dirname, join } from 'path'
|
|
import type { StorybookConfig } from '@storybook/react-vite'
|
|
|
|
const config: StorybookConfig = {
|
|
stories: ['../lib/**/*.mdx', '../lib/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
|
addons: [
|
|
getAbsolutePath('@storybook/addon-links'),
|
|
getAbsolutePath('@storybook/addon-themes'),
|
|
getAbsolutePath('@storybook/addon-vitest'),
|
|
getAbsolutePath('@storybook/addon-docs'),
|
|
getAbsolutePath('@storybook/addon-a11y'),
|
|
],
|
|
framework: {
|
|
name: getAbsolutePath('@storybook/react-vite'),
|
|
options: {},
|
|
},
|
|
}
|
|
export default config
|
|
|
|
function getAbsolutePath(value: string) {
|
|
return dirname(require.resolve(join(value, 'package.json')))
|
|
}
|