File tree 5 files changed +12
-5
lines changed
5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
.idea
3
-
3
+ coverage
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ preset : "ts-jest" ,
3
+ testEnvironment : "node" ,
4
+ } ;
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "test" : " echo \" Error: no test specified\" && exit 1" ,
8
7
"build:backend" : " tsc" ,
9
8
"build:frontend" : " webpack" ,
9
+ "dev-back" : " nodemon --exec ts-node src/main.ts --watch src" ,
10
10
"start" : " node ./dist/main.js" ,
11
- "deploy" : " npm run build:backend && npm run build:frontend && npm run start"
11
+ "deploy" : " npm run build:backend && npm run build:frontend && npm run start" ,
12
+ "test" : " jest --watch" ,
13
+ "coverage" : " jest --coverage"
12
14
},
13
15
"keywords" : [],
14
16
"author" : " " ,
35
37
},
36
38
"dependencies" : {
37
39
"axios" : " ^0.20.0" ,
40
+ "body-parser" : " ^1.19.0" ,
38
41
"ejs" : " ^2.7.4" ,
39
42
"express" : " ^4.17.1" ,
40
43
"react" : " ^16.13.1" ,
Original file line number Diff line number Diff line change 9
9
"esModuleInterop" : true
10
10
},
11
11
"include" : [" ./src" ],
12
- "exclude" : [" src/frontend" ]
12
+ "exclude" : [" src/frontend" , " src/backend/test/**/*.spec.ts " ]
13
13
}
Original file line number Diff line number Diff line change @@ -1209,7 +1209,7 @@ bn.js@^5.1.1:
1209
1209
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.1.3.tgz#beca005408f642ebebea80b042b4d18d2ac0ee6b"
1210
1210
integrity sha512-GkTiFpjFtUzU9CbMeJ5iazkCzGL3jrhzerzZIuqLABjbwRaFt33I9tUdSNryIptM+RxDet6OKm2WnLXzW51KsQ==
1211
1211
1212
- body-parser@1.19.0 :
1212
+ body-parser@1.19.0, body-parser@^1.19.0 :
1213
1213
version "1.19.0"
1214
1214
resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.19.0.tgz#96b2709e57c9c4e09a6fd66a8fd979844f69f08a"
1215
1215
integrity sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==
You can’t perform that action at this time.
0 commit comments