Skip to content

Commit c3469bb

Browse files
author
jaiprasath.m
committed
PA-11727 fix lcov error
1 parent 803eba6 commit c3469bb

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

jest.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ module.exports = {
22
preset: "ts-jest",
33
testEnvironment: "node",
44
coverageReporters: ["lcov"],
5-
testPathIgnorePatterns: [".*\\.test\\.ts$"], // ignore TypeScript tests
5+
collectCoverageFrom: ["src/**/*.ts"],
6+
testPathIgnorePatterns: [".*\\.test\\.ts$"],
67
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"build": "tsc && tsc -p tsconfig.esm.json",
2424
"prepare": "npm run build",
25-
"test": "jest --coverage && coveralls < coverage/lcov.info"
25+
"test": "jest --coverage && if [ -s coverage/lcov.info ]; then coveralls < coverage/lcov.info; else echo 'No coverage info found'; fi"
2626
},
2727
"dependencies": {
2828
"@sentry/node": "^7.73.0",

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"outDir": "dist",
88
"rootDir": ".",
99
"moduleResolution": "node",
10-
"typeRoots": [
11-
"node_modules/@types"
12-
]
10+
"sourceMap": true,
11+
"typeRoots": ["node_modules/@types"],
12+
"strict": true
1313
},
1414
"ignoreDeprecations": "5.0",
1515
"exclude": [

0 commit comments

Comments
 (0)