mirror of
https://github.com/ilyhalight/voice-over-translation.git
synced 2026-10-14 02:20:04 +00:00
31 lines
987 B
TypeScript
31 lines
987 B
TypeScript
import path from "node:path";
|
|
import { storybookTest } from "@storybook/addon-vitest/vitest-plugin";
|
|
import { playwright } from "@vitest/browser-playwright";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
// More info at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon
|
|
export default defineConfig({
|
|
test: {
|
|
projects: [
|
|
{
|
|
extends: true,
|
|
plugins: [
|
|
// The plugin will run tests for the stories defined in your Storybook config
|
|
// See options at: https://storybook.js.org/docs/next/writing-tests/integrations/vitest-addon#storybooktest
|
|
storybookTest({
|
|
configDir: path.join(import.meta.dirname, ".storybook"),
|
|
}),
|
|
],
|
|
test: {
|
|
name: "storybook",
|
|
browser: {
|
|
enabled: true,
|
|
headless: true,
|
|
provider: playwright({}),
|
|
instances: [{ browser: "chromium" }],
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|