From 6ccf0a175681a3b182ea6be57169c435c386faa7 Mon Sep 17 00:00:00 2001 From: deityhub Date: Thu, 17 Sep 2020 11:23:54 +0100 Subject: [PATCH] --forceExit jest test and remove --detectOpenHandles due to performance penalty --- accounts/package.json | 4 ++-- admin-dashboard/package.json | 4 ++-- dashboard/package.json | 4 ++-- home/package.json | 4 ++-- http-test-server/package.json | 2 +- init-script/package.json | 2 +- smoke-test/package.json | 4 ++-- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/accounts/package.json b/accounts/package.json index 9c0d6d2982..e5cd04d69a 100755 --- a/accounts/package.json +++ b/accounts/package.json @@ -42,8 +42,8 @@ "dev": "PORT=3003 react-scripts start", "build": "react-scripts build && npm run build-sw", "build-sw": "node ./src/sw-build.js", - "test": "jest --detectOpenHandles --forceExit --runInBand ./src/test/*.test.js", - "enterprise-test": "jest --detectOpenHandles --forceExit --runInBand ./src/test/*.test.enterprise.js", + "test": "jest --forceExit --runInBand ./src/test/*.test.js", + "enterprise-test": "jest --forceExit --runInBand ./src/test/*.test.enterprise.js", "start": "node index.js", "audit": "npm-audit-ci-wrapper --threshold=high", "light-house": "node lighthouse.js --web", diff --git a/admin-dashboard/package.json b/admin-dashboard/package.json index 2f47a6ab5b..0c5eb3d517 100644 --- a/admin-dashboard/package.json +++ b/admin-dashboard/package.json @@ -45,8 +45,8 @@ "scripts": { "dev": "PORT=3100 react-scripts start", "build": "react-scripts build", - "test": "jest --detectOpenHandles --forceExit --runInBand ./src/test/*.test.js", - "enterprise-test": "jest --detectOpenHandles --forceExit --runInBand ./src/test/*.test.enterprise.js", + "test": "jest --forceExit --runInBand ./src/test/*.test.js", + "enterprise-test": "jest --forceExit --runInBand ./src/test/*.test.enterprise.js", "start": "node index.js", "audit": "npm-audit-ci-wrapper --threshold=high", "dep-check": "depcheck ./ --skip-missing=true --ignores='babel-*,browserslist,loadable-components,js-uuid,acorn,@beam-australia/react-env'" diff --git a/dashboard/package.json b/dashboard/package.json index dbab061524..8be5be6e8b 100755 --- a/dashboard/package.json +++ b/dashboard/package.json @@ -85,8 +85,8 @@ "dev": "PORT=3000 react-scripts start", "build": "react-scripts build && npm run build-sw", "build-sw": "node ./src/sw-build.js", - "test": "jest --detectOpenHandles --forceExit --testSequencer ./src/test/puppeteer/CustomSequencer.js ./src/test/puppeteer/*.test.js", - "enterprise-test": "jest --detectOpenHandles --forceExit --runInBand ./src/test/puppeteer/*.test.enterprise.js", + "test": "jest --forceExit --testSequencer ./src/test/puppeteer/CustomSequencer.js ./src/test/puppeteer/*.test.js", + "enterprise-test": "jest --forceExit --runInBand ./src/test/puppeteer/*.test.enterprise.js", "start": "node index.js", "dep-check": "depcheck ./ --skip-missing=true --ignores='eslint,babel-*,browserslist,loadable-components,@beam-australia/react-env'", "audit": "npm-audit-ci-wrapper --threshold=high", diff --git a/home/package.json b/home/package.json index f4f533c1f5..b61f0867bd 100755 --- a/home/package.json +++ b/home/package.json @@ -5,9 +5,9 @@ "start": "node server.js", "dev": "nodemon server.js", "test": "echo 'no tests'", - "lighthouse-test": "jest lighthouse-tests/test/index.test.js --env=node --detectOpenHandles", + "lighthouse-test": "jest --forceExit lighthouse-tests/test/index.test.js --env=node", "lighthouse": "start-server-and-test http://localhost:1444", - "smoketest": "jest smoketest/index.test.js --env=node --detectOpenHandles", + "smoketest": "jest --forceExit smoketest/index.test.js --env=node", "audit": "npm-audit-ci-wrapper --threshold=high", "light-house": "node lighthouse.js --web", "light-house-mobile": "node lighthouse.js --mobile", diff --git a/http-test-server/package.json b/http-test-server/package.json index fda0acf944..32784f37c9 100644 --- a/http-test-server/package.json +++ b/http-test-server/package.json @@ -7,7 +7,7 @@ "start": "node server.js", "dev": "cross-env NODE_ENV=development nodemon server.js", "audit": "npm-audit-ci-wrapper --threshold=high", - "test": "jest --runInBand test", + "test": "jest --forceExit --runInBand test", "dep-check": "depcheck ./ --skip-missing=true --ignores='ejs'" }, "keywords": [], diff --git a/init-script/package.json b/init-script/package.json index 8c75ec1cda..570e659b3e 100644 --- a/init-script/package.json +++ b/init-script/package.json @@ -4,7 +4,7 @@ "version": "3.0.0", "main": "server.js", "scripts": { - "test": "jest tests", + "test": "jest --forceExit tests", "start": "node server.js", "dev": "nodemon server.js", "audit": "npm-audit-ci-wrapper --threshold=high", diff --git a/smoke-test/package.json b/smoke-test/package.json index 563883073c..1288201d7a 100644 --- a/smoke-test/package.json +++ b/smoke-test/package.json @@ -4,8 +4,8 @@ "description": "Smoke tests for fyipe", "main": "index.test.js", "scripts": { - "test": "jest --runInBand ./*.test.js", - "enterprise-test": "jest --runInBand ./*.test.enterprise.js" + "test": "jest --forceExit --runInBand ./*.test.js", + "enterprise-test": "jest --forceExit --runInBand ./*.test.enterprise.js" }, "keywords": [], "author": "",