File tree 4 files changed +32
-7
lines changed
4 files changed +32
-7
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,17 @@ module.exports = {
3
3
collectCoverage : false ,
4
4
preset : 'ts-jest' ,
5
5
testEnvironment : 'node' ,
6
- }
6
+ moduleNameMapper : {
7
+ '^@common/(.*)$' : '<rootDir>/src/common/$1' ,
8
+ '^@controllers/(.*)$' : '<rootDir>/src/controllers/$1' ,
9
+ '^@middlewares/(.*)$' : '<rootDir>/src/middlewares/$1' ,
10
+ '^@models/(.*)$' : '<rootDir>/src/models/$1' ,
11
+ '^@routes/(.*)$' : '<rootDir>/src/routes/$1' ,
12
+ '^@services/(.*)$' : '<rootDir>/src/services/$1' ,
13
+ } ,
14
+ globals : {
15
+ 'ts-jest' : {
16
+ tsconfig : 'tsconfig.json' ,
17
+ } ,
18
+ } ,
19
+ }
Original file line number Diff line number Diff line change 5
5
"author" : " Marcelo 'Mark' Kopmann" ,
6
6
"scripts" : {
7
7
"dev" : " concurrently \" nodemon\" \" nodemon -x tsoa spec\" " ,
8
- "build" : " tsoa spec && tsc && cp src/swagger.json dist/swagger.json" ,
8
+ "build" : " tsoa spec && tsc -p tsconfig.build.json && cp src/swagger.json dist/swagger.json" ,
9
9
"start" : " node dist/index.js" ,
10
10
"test" : " jest test" ,
11
11
"doc" : " tsoa spec" ,
Original file line number Diff line number Diff line change
1
+ {
2
+ "extends" : " ./tsconfig.json" ,
3
+ "exclude" : [
4
+ " src/**/*.test.ts"
5
+ ]
6
+ }
Original file line number Diff line number Diff line change 7
7
"allowSyntheticDefaultImports" : true ,
8
8
"outDir" : " dist" ,
9
9
"rootDir" : " src" ,
10
+ "baseUrl" : " ./src" ,
10
11
"experimentalDecorators" : true ,
11
- },
12
- "exclude" : [
13
- " test"
14
- ]
15
- }
12
+ "paths" : {
13
+ "@common/*" : [" common/*" ],
14
+ "@controllers/*" : [" controllers/*" ],
15
+ "@middlewares/*" : [" middlewares/*" ],
16
+ "@models/*" : [" models/*" ],
17
+ "@routes/*" : [" routes/*" ],
18
+ "@services/*" : [" services/*" ]
19
+ }
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments