halo-admin/vitest.config.ts

20 lines
422 B
TypeScript
Raw Normal View History

import { defineConfig } from "vitest/config";
import Vue from "@vitejs/plugin-vue";
import VueJsx from "@vitejs/plugin-vue-jsx";
import { fileURLToPath, URL } from "url";
export default defineConfig({
plugins: [Vue(), VueJsx()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
test: {
dir: "./src",
transformMode: {
web: [/\.[jt]sx$/],
},
},
});