ui_migration feature(unitesting) modifying vitest config and spec, add fixture real logging file
This commit is contained in:
parent
3e2dd25438
commit
c7d16fa43f
3 changed files with 5649 additions and 6 deletions
|
|
@ -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"),
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue