ui_migration feature(unitesting) modifying vitest config and spec, add fixture real logging file

This commit is contained in:
Antonio Anaya 2026-05-14 16:54:06 -06:00
parent 3e2dd25438
commit c7d16fa43f
3 changed files with 5649 additions and 6 deletions

View file

@ -5,18 +5,33 @@ import { defineConfig } from "vitest/config";
import vue from "@vitejs/plugin-vue";
import path from "path";
console.log("\n\n::: Reading vitest config.")
export default defineConfig({
plugins: [vue()],
plugins: [vue({
template: {
compilerOptions: {
hoistStatic: false,
},
},
})],
test: {
environment: "jsdom",
globals: true,
server: {
deps: {
inline: ["vue", "@vue/test-utils", "pinia", "@pinia/testing"],
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"vue": path.resolve(__dirname, "./node_modules/vue"),
},
},
});