Skip to content

Commit b598a47

Browse files
committed
updating jest.config.js
1 parent 52cd17b commit b598a47

3 files changed

Lines changed: 184 additions & 12 deletions

File tree

‎jest.config.js‎

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

‎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
@@ -57,6 +57,7 @@
5757
"@types/lodash": "^4.17.21",
5858
"jest": "^30.2.0",
5959
"jest-junit": "^16.0.0",
60+
"ts-jest": "^29.4.6",
6061
"typescript": "^5.9.3"
6162
}
6263
}

0 commit comments

Comments
 (0)