vitest.config.ts 516 B

1234567891011121314151617181920212223
  1. /// <reference types="vitest" />
  2. import { defineConfig } from "vite";
  3. import vue from "@vitejs/plugin-vue";
  4. const path = require("path");
  5. export default defineConfig({
  6. test: {
  7. coverage: {
  8. reporter: ["text", "lcovonly"],
  9. },
  10. environment: "happy-dom",
  11. },
  12. plugins: [
  13. vue({
  14. reactivityTransform: true,
  15. }),
  16. ],
  17. resolve: {
  18. alias: [{ find: "@", replacement: path.resolve(__dirname, "./src") }],
  19. extensions: [".js", ".mjs", ".ts", ".vue", ".json", ".scss", ".css"],
  20. },
  21. });