forked from StellarLend/Stellarlend-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.component.config.ts
More file actions
30 lines (28 loc) · 840 Bytes
/
Copy pathvitest.component.config.ts
File metadata and controls
30 lines (28 loc) · 840 Bytes
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
27
28
29
30
import path from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
import react from "@vitejs/plugin-react";
const dirname =
typeof __dirname !== "undefined"
? __dirname
: path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(dirname, "."),
},
},
test: {
globals: true,
environment: "jsdom",
setupFiles: "./vitest.setup.ts",
include: ["components/**/*.test.tsx", "components/**/*.test.ts"],
env: {
NEXT_PUBLIC_APP_NAME: "Stellarlend",
NEXT_PUBLIC_STELLAR_NETWORK: "testnet",
NEXT_PUBLIC_STELLAR_HORIZON_URL: "https://horizon-testnet.stellar.org",
NEXT_PUBLIC_SOROBAN_RPC_URL: "https://soroban-testnet.stellar.org",
},
},
});