jest aufgesetzt und ersten falschen test geschrieben
Showing
- __test__/api/authRoute.test.tsx 29 additions, 0 deletions__test__/api/authRoute.test.tsx
- __test__/api/commentsRoute.test.tsx 0 additions, 0 deletions__test__/api/commentsRoute.test.tsx
- jest.config.js 19 additions, 0 deletionsjest.config.js
- jest.setup.js 1 addition, 0 deletionsjest.setup.js
- package-lock.json 6584 additions, 2761 deletionspackage-lock.json
- package.json 7 additions, 1 deletionpackage.json
__test__/api/authRoute.test.tsx
0 → 100644
__test__/api/commentsRoute.test.tsx
0 → 100644
jest.config.js
0 → 100644
jest.setup.js
0 → 100644
This diff is collapsed.
... | ... | @@ -9,7 +9,9 @@ |
"start": "next start", | ||
"lint": "next lint", | ||
"preview": "next build && next start", | ||
"vercel-build": "prisma generate && prisma migrate deploy && next build" | ||
"vercel-build": "prisma generate && prisma migrate deploy && next build", | ||
"test": "jest", | ||
"coverage": "jest --coverage" | ||
}, | ||
"dependencies": { | ||
"@auth/prisma-adapter": "^1.0.0", | ||
... | ... | @@ -44,6 +46,8 @@ |
}, | ||
"devDependencies": { | ||
"@tanstack/eslint-plugin-query": "^4.29.9", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^14.0.0", | ||
"@types/bcrypt": "^5.0.0", | ||
"@types/node": "^20.3.1", | ||
"@types/react": "^18.2.13", | ||
... | ... | @@ -51,6 +55,8 @@ |
"autoprefixer": "10.4.14", | ||
"eslint": "^8.43.0", | ||
"eslint-config-next": "^13.4.6", | ||
"jest": "^29.5.0", | ||
"jest-environment-jsdom": "^29.5.0", | ||
"postcss": "8.4.24", | ||
"prisma": "^4.15.0", | ||
"tailwindcss": "3.3.2", | ||
... | ... |
Please register or sign in to comment