disable logging during tests, remove unused test:unit script, and add 'test' task to run all
This commit is contained in:
@@ -17,9 +17,9 @@
|
|||||||
"debug:test:int": "node --inspect-brk node_modules/.bin/jest --runInBand",
|
"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",
|
"dev": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js nodemon demo/server.js",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"test:int": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test jest --forceExit --runInBand",
|
"test": "yarn test:int && yarn test:client",
|
||||||
"test:unit": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test jest",
|
"test:int": "cross-env PAYLOAD_CONFIG_PATH=demo/payload.config.js NODE_ENV=test DISABLE_LOGGING=true jest --forceExit --runInBand",
|
||||||
"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: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": {
|
"dependencies": {
|
||||||
"@babel/core": "^7.11.6",
|
"@babel/core": "^7.11.6",
|
||||||
|
|||||||
Reference in New Issue
Block a user