disable logging during tests, remove unused test:unit script, and add 'test' task to run all

This commit is contained in:
Elliot DeNolf
2020-10-08 04:55:06 -04:00
parent c599522e44
commit 18f98e24e5

View File

@@ -17,9 +17,9 @@
"debug:test:int": "node --inspect-brk node_modules/.bin/jest --runInBand",
"dev": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js nodemon demo/server.js",
"lint": "eslint .",
"test:int": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test jest --forceExit --runInBand",
"test:unit": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test jest",
"test:react": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test jest --config=jest.react.config.js src/client/client.spec.js"
"test": "yarn test:int && yarn test:client",
"test:int": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test DISABLE_LOGGING=true jest --forceExit --runInBand",
"test:client": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test jest --config=jest.react.config.js src/client/client.spec.js"
},
"dependencies": {
"@babel/core": "^7.11.6",