File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 77 "start-windows" : " set DEBUG=hackboard:* && set NODE_ENV=test && nodemon --ignore gcp_creds.json ./bin/www.js" ,
88 "deploy" : " NODE_ENV=deployment node ./bin/www.js" ,
99 "debug" : " DEBUG=hackboard:* NODE_ENV=test nodemon --ignore gcp_creds.json ./bin/www.js" ,
10- "test" : " DEBUG=hackboard:* NODE_ENV=test mocha --reporter spec tests/**.js --exit" ,
10+ "test" : " DEBUG=hackboard:* NODE_ENV=test mocha -r dotenv/config - -reporter spec tests/**.js --exit" ,
1111 "seed" : " NODE_ENV=test node ./seed/index.js" ,
1212 "docs" : " apidoc -i ./routes -o ./docs/api/" ,
1313 "format" : " prettier --write '**/*.js'" ,
Original file line number Diff line number Diff line change 11"use strict" ;
22const dotenv = require ( "dotenv" ) ;
33const path = require ( "path" ) ;
4- dotenv . config ( {
5- path : path . join ( __dirname , "../.env" )
6- } ) ;
74const EmailService = require ( "../services/email.service" ) ;
85const assert = require ( "chai" ) . assert ;
96
Original file line number Diff line number Diff line change 11"use strict" ;
22const path = require ( "path" ) ;
33//load up env variables
4- require ( "../services/env.service" ) . load ( path . join ( __dirname , "../.env" ) ) ;
4+ const dotenv = require ( "dotenv" ) ;
5+ require ( "../services/env.service" ) . load ( dotenv ) ;
56
67const StorageService = require ( "../services/storage.service" ) ;
78
You can’t perform that action at this time.
0 commit comments