Skip to content

Commit 6386f2e

Browse files
committed
[tap] Add unit tests
1 parent de8515f commit 6386f2e

File tree

8 files changed

+8813
-1836
lines changed

8 files changed

+8813
-1836
lines changed

.env.test

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PORT=5000
2+
JWT_SECRET_KEY=5OQ1ZE9FJiP0d3PKTnOT
3+
4+
# Database configuration
5+
DATABASE_HOST=postgres
6+
DATABASE_NAME=postgresdb
7+
DATABASE_USER=testuser
8+
DATABASE_PASSWORD=password123
9+
DATABASE_PORT=5432
10+
DATABASE_URL=postgresql://testuser:password123@localhost:5432/testdb?schema=public

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
# Keep environment variables out of version control
33
.env
4+
.tap

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,16 @@ npx tsc --init
1313

1414
```
1515
npm install fastify fastify-zod zod zod-to-json-schema @fastify/swagger @fastify/swagger-ui @fastify/jwt @prisma/client bcrypt
16+
17+
npm install @faker-js/faker tap ts-mock-imports
1618
```
1719

1820
### Dev Dependencies
1921

2022
```
2123
npm install -D ts-node ts-node-dev typescript @types/node dotenv nodemon @types/bcrypt
24+
25+
npm install -D @types/tap sinon
2226
```
2327

2428
### Prisma Initialization

0 commit comments

Comments
 (0)