Skip to content

Commit 431d974

Browse files
committed
add tests
1 parent c62a650 commit 431d974

27 files changed

+1735
-346
lines changed

.env.example

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ NEXTAUTH_URL="http://localhost:3000"
2121
# EAS GraphQL API URL
2222
NEXT_PUBLIC_EASSCAN_URL=https://optimism.easscan.org/graphql
2323

24-
NEXT_PUBLIC_WALLETCONNECT_ID=
24+
# WalletConnect
25+
# Get your own projectId at https://cloud.walletconnect.com
26+
# Defaults to exampleProjectId found in https://github.com/rainbow-me/rainbowkit/blob/d68813501e40363f76856f7471552c83c08f7606/packages/rainbowkit/src/wallets/getWalletConnectConnector.ts#L73
27+
NEXT_PUBLIC_WALLETCONNECT_ID="21fef48091f12692cad574a6f7753643"
2528

2629
# Optional but highly recommended
2730
NEXT_PUBLIC_ALCHEMY_ID=

bun.lockb

124 KB
Binary file not shown.

package.json

+13-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@t3-oss/env-nextjs": "^0.7.1",
2626
"@tailwindcss/forms": "^0.5.7",
2727
"@tanstack/react-query": "^4.36.1",
28+
"@testing-library/react": "^14.1.2",
2829
"@trpc/client": "^10.44.1",
2930
"@trpc/next": "^10.44.1",
3031
"@trpc/react-query": "^10.44.1",
@@ -56,29 +57,40 @@
5657
"devDependencies": {
5758
"@next/eslint-plugin-next": "^14.0.4",
5859
"@tailwindcss/typography": "^0.5.10",
60+
"@testing-library/jest-dom": "^6.1.5",
5961
"@types/eslint": "^8.56.0",
6062
"@types/node": "^18.19.3",
6163
"@types/node-fetch-cache": "^3.0.4",
6264
"@types/react": "^18.2.45",
6365
"@types/react-dom": "^18.2.18",
6466
"@typescript-eslint/eslint-plugin": "^6.15.0",
6567
"@typescript-eslint/parser": "^6.15.0",
68+
"@vitejs/plugin-react": "^4.2.1",
6669
"autoprefixer": "^10.4.16",
6770
"dotenv": "^16.3.1",
6871
"eslint": "^8.56.0",
72+
"happy-dom": "^12.10.3",
73+
"jsdom": "^23.0.1",
6974
"ky": "^1.1.3",
7075
"msw": "^2.0.11",
76+
"msw-trpc": "2.0.0-beta.0",
77+
"mws": "^2.0.11",
78+
"next-router-mock": "^0.9.11",
7179
"postcss": "^8.4.32",
7280
"prettier": "^3.1.1",
7381
"prettier-plugin-tailwindcss": "^0.5.9",
7482
"prisma": "^5.7.1",
7583
"tailwindcss": "^3.4.0",
7684
"typescript": "^5.3.3",
7785
"vite": "^5.0.10",
86+
"vite-tsconfig-paths": "^4.2.2",
7887
"vitest": "^1.1.0",
7988
"vitest-mock-extended": "^1.3.1"
8089
},
8190
"ct3aMetadata": {
8291
"initVersion": "7.24.1"
92+
},
93+
"msw": {
94+
"workerDirectory": "public"
8395
}
84-
}
96+
}

0 commit comments

Comments
 (0)