mirror of
https://github.com/Discreetly/server.git
synced 2026-01-09 12:37:58 -05:00
feature(jest) writing tests for express endpoints
This commit is contained in:
9
jest.config.cjs
Normal file
9
jest.config.cjs
Normal 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" }]
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user