This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-11-21 11:43:16 +01:00
parent dcc78353f2
commit a9a84ad77b
+25 -24
View File
@@ -11,28 +11,29 @@ const dirname = typeof __dirname !== 'undefined' ? __dirname : path.dirname(file
// More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon // More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
test: { base: '/',
projects: [{ test: {
extends: true, projects: [{
plugins: [ extends: true,
// The plugin will run tests for the stories defined in your Storybook config plugins: [
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest // The plugin will run tests for the stories defined in your Storybook config
storybookTest({ // See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
configDir: path.join(dirname, '.storybook') storybookTest({
})], configDir: path.join(dirname, '.storybook')
test: { })],
name: 'storybook', test: {
browser: { name: 'storybook',
enabled: true, browser: {
headless: true, enabled: true,
provider: playwright({}), headless: true,
instances: [{ provider: playwright({}),
browser: 'chromium' instances: [{
}] browser: 'chromium'
}, }]
setupFiles: ['.storybook/vitest.setup.js'] },
} setupFiles: ['.storybook/vitest.setup.js']
}] }
} }]
}
}); });