File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1010 ],
1111 "extends" : [
1212 " plugin:@typescript-eslint/all" ,
13+ " airbnb-base" ,
1314 " airbnb-typescript/base"
1415 ],
1516 "rules" : {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module.exports = {
44 tsconfig : 'tsconfig.dev.json' ,
55 } ,
66 } ,
7+ collectCoverageFrom : [ "src/**/*.ts" ] ,
78 preset : 'ts-jest' ,
89 testEnvironment : 'node' ,
910 testPathIgnorePatterns : [ "<rootDir>/dist/" ] ,
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ app.listen(
1010 port ,
1111 host ,
1212 ( ) => {
13- console . log ( `Server running on ${ host } :${ port } ` ) ;
13+ process . stdout . write ( `Server running on ${ host } :${ port } \n ` ) ;
1414 } ,
1515) ;
Original file line number Diff line number Diff line change 11import { migrate } from '../database' ;
22
3- console . log ( 'Starting migrations...' ) ;
3+ process . stdout . write ( 'Starting migrations...\n ' ) ;
44migrate ( )
55 . then ( ( ) => {
6- console . log ( 'Migrations complete.' ) ;
6+ process . stdout . write ( 'Migrations complete.\n ' ) ;
77 process . exit ( ) ;
88 } )
9- . catch ( ( reason ) => {
10- console . log ( 'Migrations failed!' ) ;
11- console . log ( reason ) ;
9+ . catch ( ( reason : unknown ) => {
10+ process . stdout . write ( 'Migrations failed!\n' ) ;
11+ if ( reason instanceof Error ) {
12+ process . stdout . write ( `${ reason . message } \n` ) ;
13+ }
1214 process . exit ( 1 ) ;
1315 } ) ;
You can’t perform that action at this time.
0 commit comments