Skip to content

Instantly share code, notes, and snippets.

@YonatanKra
Created September 3, 2023 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YonatanKra/3baa6d3b2321ea31645225c7e1787d79 to your computer and use it in GitHub Desktop.
Save YonatanKra/3baa6d3b2321ea31645225c7e1787d79 to your computer and use it in GitHub Desktop.
Tauri-demo vite config with tests
import { defineConfig } from "vite";
export default defineConfig(async () => ({
clearScreen: false,
server: {
port: 1420,
strictPort: true,
},
envPrefix: ["VITE_", "TAURI_"],
test: {
globals: true,
environment: "jsdom",
},
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment