2023-06-21 19:06:25 +00:00
|
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
import * as path from "path"
|
2023-07-11 17:32:33 +00:00
|
|
|
import Icons from "unplugin-icons/vite"
|
|
|
|
import { FileSystemIconLoader } from "unplugin-icons/loaders"
|
|
|
|
import Vue from "@vitejs/plugin-vue"
|
2023-06-21 19:06:25 +00:00
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
test: {
|
|
|
|
environment: "jsdom",
|
|
|
|
setupFiles: "./src/setupTests.ts",
|
|
|
|
},
|
|
|
|
resolve: {
|
|
|
|
alias: {
|
|
|
|
"~": path.resolve(__dirname, "../hoppscotch-common/src"),
|
2023-07-11 17:32:33 +00:00
|
|
|
"@composables": path.resolve(
|
|
|
|
__dirname,
|
|
|
|
"../hoppscotch-common/src/composables"
|
|
|
|
),
|
2023-06-21 19:06:25 +00:00
|
|
|
},
|
|
|
|
},
|
2023-07-11 17:32:33 +00:00
|
|
|
plugins: [
|
|
|
|
Vue(),
|
|
|
|
Icons({
|
|
|
|
compiler: "vue3",
|
|
|
|
customCollections: {
|
|
|
|
hopp: FileSystemIconLoader("../hoppscotch-common/assets/icons"),
|
|
|
|
auth: FileSystemIconLoader("../hoppscotch-common/assets/icons/auth"),
|
|
|
|
brands: FileSystemIconLoader(
|
|
|
|
"../hoppscotch-common/assets/icons/brands"
|
|
|
|
),
|
|
|
|
},
|
|
|
|
}) as any,
|
|
|
|
],
|
2023-06-21 19:06:25 +00:00
|
|
|
})
|