Skip to content

Commit 8caff72

Browse files
committed
updating jest.config.js
1 parent f9caae4 commit 8caff72

File tree

3 files changed

+186
-11
lines changed

3 files changed

+186
-11
lines changed

jest.config.js

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
module.exports = {
22
verbose: true,
33
globalTeardown: "./tests/teardown.js",
4+
preset: "ts-jest",
45
reporters: [
56
'default',
6-
['github-actions', {silent: false}],
7+
['github-actions', {silent: false}],
78
'summary',
8-
['jest-junit', { suiteName: "junit-converter tests" }]
9-
// ["jest-html-reporters", {
10-
// publicPath: './tests/report',
11-
// filename: 'report.html',
12-
// darkTheme: true,
13-
// pageTitle: 'junit-converter',
14-
// expand: true,
15-
// urlForTestFiles: 'https://github.com/agracio/junit-converter/blob/main'
16-
// }
17-
// ]
9+
['jest-junit', { suiteName: "mochawesome-converter tests" }]
1810
],
11+
testMatch: ["<rootDir>/tests/**/*.test.{js,jsx,ts,tsx}"],
12+
collectCoverage: true,
1913
"collectCoverageFrom": [
2014
"lib/**/*.js"
2115
],
16+
coverageDirectory: "coverage",
2217
}

package-lock.json

Lines changed: 179 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"@types/node": "^24.10.1",
5252
"jest": "^30.2.0",
5353
"jest-junit": "^16.0.0",
54+
"ts-jest": "^29.4.6",
5455
"typescript": "^5.9.3"
5556
}
5657
}

0 commit comments

Comments
 (0)