feat(api): setup jest in new api (#49709)

* feat(api): setup jest in new api

* feat: sample tests
This commit is contained in:
Tom
2023-03-16 10:03:40 -05:00
committed by GitHub
parent 32a2838714
commit 7aeb4ab76b
9 changed files with 819 additions and 50 deletions
+11 -7
View File
@@ -8,14 +8,22 @@
"@fastify/middie": "8.1",
"@fastify/session": "^10.1.1",
"@prisma/client": "4.10.1",
"connect-mongo": "4.6.0",
"@sinclair/typebox": "0.25.24",
"connect-mongo": "4.6.0",
"fastify": "4.14.1",
"fastify-auth0-verify": "^1.0.0",
"fastify-plugin": "^4.3.0",
"nodemon": "2.0.21"
},
"description": "The freeCodeCamp.org open-source codebase and curriculum",
"devDependencies": {
"@fastify/type-provider-typebox": "2.4.0",
"@types/supertest": "2.0.12",
"jest": "29.5.0",
"prisma": "4.10.1",
"supertest": "6.3.3",
"ts-jest": "29.0.5"
},
"engines": {
"node": ">=18",
"npm": ">=8"
@@ -40,14 +48,10 @@
"scripts": {
"build": "tsc",
"develop": "nodemon index.ts",
"start": "NODE_ENV=production node index.js",
"start": "NODE_ENV=production node index.ts",
"test": "node --test -r ts-node/register **/*.test.ts",
"prisma": "MONGOHQ_URL=mongodb://localhost:27017/freecodecamp?directConnection=true prisma",
"postinstall": "prisma generate"
},
"version": "0.0.1",
"devDependencies": {
"prisma": "4.10.1",
"@fastify/type-provider-typebox": "2.4.0"
}
"version": "0.0.1"
}