feature(jest) writing tests for express endpoints

This commit is contained in:
Tanner Shaw
2023-08-03 10:55:46 -05:00
parent 5d6d38979b
commit 942f3a8fee
11 changed files with 5931 additions and 47 deletions

9
jest.config.cjs Normal file
View File

@@ -0,0 +1,9 @@
module.exports = {
clearMocks: true,
preset: 'ts-jest',
testEnvironment: 'node',
"transform": {
"^.+\\.jsx?$": "babel-jest",
"^.+\\.tsx?$": ["ts-jest", { tsconfig: "./tsconfig.tests.json" }]
},
}