diff --git a/ApiReference/package.json b/ApiReference/package.json index 7c9d1d90db..67f257fc03 100755 --- a/ApiReference/package.json +++ b/ApiReference/package.json @@ -6,7 +6,8 @@ "start": "node --require ts-node/register Index.ts", "compile": "tsc", "dev": "npx nodemon", - "test": "jest", + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage", "lighthouse-test": "jest --forceExit lighthouse-tests/test/index.test.js --env=node", "lighthouse": "start-server-and-test http://localhost:1444", "smoketest": "jest --forceExit smoketest/index.test.js --env=node", diff --git a/Common/jest.config.json b/Common/jest.config.json index 7b7678622f..52628ecd4f 100644 --- a/Common/jest.config.json +++ b/Common/jest.config.json @@ -16,7 +16,7 @@ ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", - "collectCoverage": true, + "collectCoverage": false, "coverageReporters": [ "text", "lcov" diff --git a/Common/package.json b/Common/package.json index eaffc6b0cc..37ce467c4d 100644 --- a/Common/package.json +++ b/Common/package.json @@ -4,7 +4,8 @@ "description": "", "main": "index.js", "scripts": { - "test": "jest", + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage", "compile": "tsc" }, "author": "", diff --git a/CommonUI/package.json b/CommonUI/package.json index afa3d02e72..bc842262bc 100644 --- a/CommonUI/package.json +++ b/CommonUI/package.json @@ -4,7 +4,8 @@ "description": "", "main": "index.ts", "scripts": { - "test": "jest", + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage", "compile": "tsc" }, "author": "", diff --git a/DashboardAPI/package.json b/DashboardAPI/package.json index f4a1223b44..1643c368ad 100644 --- a/DashboardAPI/package.json +++ b/DashboardAPI/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC", diff --git a/File/package.json b/File/package.json index 301103435b..c4e7a5d68a 100644 --- a/File/package.json +++ b/File/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC", diff --git a/Home/jest.config.json b/Home/jest.config.json index e0d297bc0c..7c066d401e 100644 --- a/Home/jest.config.json +++ b/Home/jest.config.json @@ -12,7 +12,7 @@ ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", - "collectCoverage": true, + "collectCoverage": false, "coverageReporters": ["text", "lcov"], "testRegex": "./Tests/(.*).test.ts", "collectCoverageFrom": ["./**/*.(tsx||ts)"], diff --git a/Home/package.json b/Home/package.json index 7c9d1d90db..67f257fc03 100755 --- a/Home/package.json +++ b/Home/package.json @@ -6,7 +6,8 @@ "start": "node --require ts-node/register Index.ts", "compile": "tsc", "dev": "npx nodemon", - "test": "jest", + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage", "lighthouse-test": "jest --forceExit lighthouse-tests/test/index.test.js --env=node", "lighthouse": "start-server-and-test http://localhost:1444", "smoketest": "jest --forceExit smoketest/index.test.js --env=node", diff --git a/Identity/package.json b/Identity/package.json index 997f988674..aeb40ced12 100644 --- a/Identity/package.json +++ b/Identity/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC", diff --git a/Ingestor/jest.config.json b/Ingestor/jest.config.json index e0d297bc0c..7c066d401e 100644 --- a/Ingestor/jest.config.json +++ b/Ingestor/jest.config.json @@ -12,7 +12,7 @@ ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", - "collectCoverage": true, + "collectCoverage": false, "coverageReporters": ["text", "lcov"], "testRegex": "./Tests/(.*).test.ts", "collectCoverageFrom": ["./**/*.(tsx||ts)"], diff --git a/Integration/package.json b/Integration/package.json index 2ae9c816aa..28e3bdfd9b 100644 --- a/Integration/package.json +++ b/Integration/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC", diff --git a/LinkShortener/package.json b/LinkShortener/package.json index 9fe7503085..2a4e7f6a55 100644 --- a/LinkShortener/package.json +++ b/LinkShortener/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC", diff --git a/Model/package.json b/Model/package.json index 413b6dd17e..afa9015a06 100644 --- a/Model/package.json +++ b/Model/package.json @@ -4,7 +4,8 @@ "description": "", "main": "index.js", "scripts": { - "test": "jest --passWithNoTests", + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage", "compile": "tsc" }, "dependencies": { diff --git a/Probe/jest.config.json b/Probe/jest.config.json index e0d297bc0c..7c066d401e 100644 --- a/Probe/jest.config.json +++ b/Probe/jest.config.json @@ -12,7 +12,7 @@ ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", - "collectCoverage": true, + "collectCoverage": false, "coverageReporters": ["text", "lcov"], "testRegex": "./Tests/(.*).test.ts", "collectCoverageFrom": ["./**/*.(tsx||ts)"], diff --git a/Probe/package.json b/Probe/package.json index 1de66e0cab..376a70ff6f 100644 --- a/Probe/package.json +++ b/Probe/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest --passWithNoTests", + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage", "debug:test": "node --inspect node_modules/.bin/jest --runInBand ./Tests --detectOpenHandles" }, "author": "", diff --git a/TestServer/jest.config.json b/TestServer/jest.config.json index e0d297bc0c..7c066d401e 100644 --- a/TestServer/jest.config.json +++ b/TestServer/jest.config.json @@ -12,7 +12,7 @@ ".(ts|tsx)": "ts-jest" }, "testEnvironment": "node", - "collectCoverage": true, + "collectCoverage": false, "coverageReporters": ["text", "lcov"], "testRegex": "./Tests/(.*).test.ts", "collectCoverageFrom": ["./**/*.(tsx||ts)"], diff --git a/TestServer/package.json b/TestServer/package.json index 61626667e6..cd2ccf6add 100644 --- a/TestServer/package.json +++ b/TestServer/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest --passWithNoTests" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC", diff --git a/Workers/package.json b/Workers/package.json index 00865f933e..8598cca5a4 100644 --- a/Workers/package.json +++ b/Workers/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "MIT", diff --git a/Workflow/package.json b/Workflow/package.json index 311c8ec848..e81fe993ed 100644 --- a/Workflow/package.json +++ b/Workflow/package.json @@ -9,7 +9,8 @@ "dev": "npx nodemon", "audit": "npm audit --audit-level=low", "dep-check": "depcheck ./ --skip-missing=true", - "test": "jest" + "test": "jest --detectOpenHandles", + "coverage": "jest --detectOpenHandles --coverage" }, "author": "", "license": "ISC",