Skip to content

Commit

Permalink
Add jest.config.json
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Feb 24, 2024
1 parent 2f4396f commit f83f9b6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
15 changes: 0 additions & 15 deletions api/jest.config.js

This file was deleted.

27 changes: 27 additions & 0 deletions api/jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"testEnvironment": "node",
"extensionsToTreatAsEsm": [
".ts"
],
"roots": [
"./tests/"
],
"testMatch": [
"**/*.test.ts"
],
"collectCoverage": true,
"coverageReporters": [
"cobertura",
"html"
],
"collectCoverageFrom": [
"src/**/*.ts",
"!**/node_modules/**",
"!**/dist/**",
"!**/tests/**"
],
"testTimeout": 15000
}
4 changes: 3 additions & 1 deletion api/nodemon.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"watch": ["src"],
"watch": [
"src"
],
"ext": ".ts",
"ignore": [],
"exec": "tsx --experimental-specifier-resolution=node ./src"
Expand Down

0 comments on commit f83f9b6

Please sign in to comment.