Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
import { defineConfig } from "vitest/config"
import * as path from "path"
export default defineConfig({
test: {
// `mainDiag` reads `window.__TAURI_INTERNALS__` on every launcher
// step, so the launcher code needs a DOM even in a unit run.
environment: "jsdom",
},
resolve: {
alias: {
"~": path.resolve(__dirname, "src"),
"@hoppscotch/common": path.resolve(__dirname, "../hoppscotch-common/src"),
},
},
})