uptime-kuma/config/vitest.config.js

22 lines
525 B
JavaScript
Raw Normal View History

2024-11-20 06:12:46 -08:00
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath } from "url";
import { dirname, resolve } from "path";
2024-11-20 05:48:13 -08:00
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
2024-11-20 06:12:46 -08:00
plugins: [ vue() ],
2024-11-20 05:48:13 -08:00
test: {
globals: true,
2024-11-20 06:12:46 -08:00
environment: "jsdom",
setupFiles: [ "./test/component/setup.js" ],
2024-11-20 05:48:13 -08:00
},
resolve: {
alias: {
2024-11-20 06:12:46 -08:00
"@": resolve(__dirname, "../src"),
2024-11-20 05:48:13 -08:00
},
},
});