* Added default layout for the site * App is in light mode by default. * App is in light mode by default.
45 lines
1 KiB
TypeScript
45 lines
1 KiB
TypeScript
import { defineConfig } from "vitest/config";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import { fileURLToPath, URL } from "node:url";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
test: {
|
|
globals: true,
|
|
setupFiles: ["./tests/setup.ts"],
|
|
environment: "happy-dom",
|
|
include: ["tests/**/*.test.ts"],
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "html", "lcov"],
|
|
clean: true,
|
|
cleanOnRerun: true,
|
|
include: ["**/*.{js,jsx,ts,tsx,vue}"],
|
|
exclude: [
|
|
"node_modules/**",
|
|
"dist/**",
|
|
"coverage/**",
|
|
"**/*.test.ts",
|
|
"tests/mocks/**",
|
|
|
|
// Exclude Nuxt generated files
|
|
".nuxt/**",
|
|
".output/**",
|
|
|
|
// Exclude TypeScript declaration files
|
|
"**/*.d.ts",
|
|
|
|
// Exclude config files
|
|
"*.config.*",
|
|
"assets/icons/**",
|
|
],
|
|
},
|
|
name: "GFiesta",
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"~": fileURLToPath(new URL("./app", import.meta.url)),
|
|
"@": fileURLToPath(new URL("./app", import.meta.url)),
|
|
},
|
|
},
|
|
});
|