Update Jest configurations for test coverage

This commit is contained in:
Simon Larsen 2023-11-22 10:55:09 +00:00
parent 2bc92729e5
commit 7f93e953ee
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
19 changed files with 33 additions and 19 deletions

View File

@ -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",

View File

@ -16,7 +16,7 @@
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverage": false,
"coverageReporters": [
"text",
"lcov"

View File

@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "jest",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"compile": "tsc"
},
"author": "",

View File

@ -4,7 +4,8 @@
"description": "",
"main": "index.ts",
"scripts": {
"test": "jest",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"compile": "tsc"
},
"author": "",

View File

@ -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",

View File

@ -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",

View File

@ -12,7 +12,7 @@
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverage": false,
"coverageReporters": ["text", "lcov"],
"testRegex": "./Tests/(.*).test.ts",
"collectCoverageFrom": ["./**/*.(tsx||ts)"],

View File

@ -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",

View File

@ -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",

View File

@ -12,7 +12,7 @@
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverage": false,
"coverageReporters": ["text", "lcov"],
"testRegex": "./Tests/(.*).test.ts",
"collectCoverageFrom": ["./**/*.(tsx||ts)"],

View File

@ -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",

View File

@ -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",

View File

@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "jest --passWithNoTests",
"test": "jest --detectOpenHandles",
"coverage": "jest --detectOpenHandles --coverage",
"compile": "tsc"
},
"dependencies": {

View File

@ -12,7 +12,7 @@
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverage": false,
"coverageReporters": ["text", "lcov"],
"testRegex": "./Tests/(.*).test.ts",
"collectCoverageFrom": ["./**/*.(tsx||ts)"],

View File

@ -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": "",

View File

@ -12,7 +12,7 @@
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "node",
"collectCoverage": true,
"collectCoverage": false,
"coverageReporters": ["text", "lcov"],
"testRegex": "./Tests/(.*).test.ts",
"collectCoverageFrom": ["./**/*.(tsx||ts)"],

View File

@ -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",

View File

@ -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",

View File

@ -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",