-
-
Notifications
You must be signed in to change notification settings - Fork 224
/
vitest.config.ts
26 lines (25 loc) · 970 Bytes
/
vitest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { fileURLToPath } from "url";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
components: fileURLToPath(new URL("./components", import.meta.url)),
lib: fileURLToPath(new URL("./lib", import.meta.url)),
helpers: fileURLToPath(new URL("./helpers", import.meta.url)),
img: fileURLToPath(new URL("./img", import.meta.url)),
},
},
test: {
include: ["./**/*.test.ts", "./**/*.test.tsx"],
globals: true,
environment: "jsdom",
env: {
NEXT_PUBLIC_SUPABASE_URL: "https://fcqqkxwlntnrtjfbcioz.supabase.co",
NEXT_PUBLIC_SUPABASE_ANON_KEY:
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImZjcXFreHdsbnRucnRqZmJjaW96Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTg0MTkyNzQsImV4cCI6MjAxMzk5NTI3NH0.ymWWYdnJC2gsnrJx4lZX2cfSOp-1xVuWFGt1Wr6zwtg",
},
},
});