mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-04-02 14:25:43 +00:00
33 lines
968 B
JavaScript
33 lines
968 B
JavaScript
import { defineConfig } from "vitest/config";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue()],
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
include: ["tests/frontend/**/*.{test,spec}.{js,ts,jsx,tsx}"],
|
|
setupFiles: ["tests/frontend/setup.js"],
|
|
ui: false,
|
|
open: false,
|
|
coverage: {
|
|
provider: "v8",
|
|
reporter: ["text", "json-summary"],
|
|
reportsDirectory: "./coverage",
|
|
include: ["meshchatx/src/frontend/**/*.{js,vue}"],
|
|
exclude: [
|
|
"meshchatx/src/frontend/**/*.d.ts",
|
|
"meshchatx/src/frontend/public/**",
|
|
"meshchatx/src/frontend/locales/**",
|
|
"**/node_modules/**",
|
|
],
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "meshchatx", "src", "frontend"),
|
|
},
|
|
},
|
|
});
|