force NODE_ENV=test also on backend tests

This commit is contained in:
Ulf Gebhardt 2021-01-22 17:33:33 +01:00
parent d8d22015d0
commit cd42824502
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -15,7 +15,7 @@
"dev": "nodemon --exec babel-node src/ -e js,gql",
"dev:debug": "nodemon --exec babel-node --inspect=0.0.0.0:9229 src/ -e js,gql",
"lint": "eslint src --config .eslintrc.js",
"test": "jest --forceExit --detectOpenHandles --runInBand",
"test": "cross-env NODE_ENV=test jest --forceExit --detectOpenHandles --runInBand",
"db:clean": "babel-node src/db/clean.js",
"db:reset": "yarn run db:clean",
"db:seed": "babel-node src/db/seed.js",