set base
This commit is contained in:
+25
-24
@@ -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']
|
||||||
}]
|
}
|
||||||
}
|
}]
|
||||||
|
}
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user