forked from nikita/muzika-gromche
30 lines
706 B
TypeScript
30 lines
706 B
TypeScript
import base from "./vite.config";
|
|
import { mergeConfig } from "vite";
|
|
import { playwright } from "@vitest/browser-playwright";
|
|
|
|
export default mergeConfig(base, {
|
|
define: {
|
|
// See https://github.com/vitest-dev/vitest/issues/6872
|
|
"process.env": JSON.stringify({}),
|
|
},
|
|
test: {
|
|
globals: true,
|
|
// environment: 'jsdom',
|
|
// include tests in `tests/` directory
|
|
include: [
|
|
"src/**/*.spec.ts",
|
|
"src/**/*.test.ts",
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.test.ts",
|
|
],
|
|
browser: {
|
|
enabled: true,
|
|
provider: playwright(),
|
|
// https://vitest.dev/config/browser/playwright
|
|
instances: [
|
|
{ browser: "firefox" },
|
|
],
|
|
},
|
|
},
|
|
});
|