uptime-kuma/config/vitest.config.js

22 lines
525 B
JavaScript
Raw Normal View History

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