File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "port" : 3031 ,
3
+ "baseURL" : " http://localhost:3031" ,
4
+ "seeder" : {
5
+ "runOnInit" : false ,
6
+ "dropDatabase" : false
7
+ },
8
+ "mongodb" : " mongodb://localhost:27017/hc_api_test"
9
+ }
Original file line number Diff line number Diff line change 42
42
"dev-win" : " npm run clear && concurrently \" mongod --dbpath data\" \" wait-on tcp:27017&&SET NODE_ENV=development&& nodemon --inspect server/\" " ,
43
43
"dev-noseed" : " concurrently 'mongod --dbpath data' 'wait-on tcp:27017 && NODE_ENV=development nodemon --inspect server/'" ,
44
44
"dev-win-noseed" : " concurrently \" mongod --dbpath data\" \" wait-on tcp:27017 && nodemon --inspect server/\" " ,
45
- "mocha" : " mocha test/ --recursive"
45
+ "mocha" : " npm run clear && concurrently --success first --kill-others 'mongod --dbpath data &>/dev/null' 'wait-on tcp:27017 && NODE_ENV=test mocha test/ --recursive --timeout 10000 --exit' "
46
46
},
47
47
"dependencies" : {
48
48
"body-parser" : " ~1.18.2" ,
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ const app = require('../../server/app');
4
4
describe ( '\'status\' service' , ( ) => {
5
5
const service = app . service ( 'status' ) ;
6
6
7
- beforeEach ( async ( ) => {
8
- await service . update ( { } , {
7
+ beforeEach ( ( ) => {
8
+ return service . update ( { } , {
9
9
maintenance : false
10
10
} , { secret : app . get ( 'apiSecret' ) } ) ;
11
11
} ) ;
You can’t perform that action at this time.
0 commit comments