base_ui/vitest.config.ts

26 lines
829 B
TypeScript
Raw Permalink Normal View History

2025-02-01 09:34:55 +00:00
// vitest.config.ts
import { fileURLToPath } from "node:url";
import { defineVitestConfig } from "@nuxt/test-utils/config";
// import { loadEnv } from "vite";
export default defineVitestConfig({
test: {
// You can alternatively set environment: 'nuxt' in your
// Vitest configuration to enable the Nuxt environment for all tests.
// you can optionally set Nuxt-specific environment options
// environmentOptions: {
// nuxt: {
// rootDir: fileURLToPath(new URL("./playground", import.meta.url)),
// domEnvironment: "happy-dom", // 'happy-dom' (default) or 'jsdom'
// overrides: {
// // other Nuxt config you want to pass
// },
// mock: {
// intersectionObserver: true,
// indexedDb: true,
// },
// },
// },
},
});