jest reporters

This commit is contained in:
Jan Prochazka
2025-11-27 15:13:28 +01:00
parent ebd4991de8
commit 094acc40e8
5 changed files with 5 additions and 17 deletions

View File

@@ -1,7 +1,4 @@
module.exports = { module.exports = {
setupFilesAfterEnv: ['<rootDir>/setupTests.js'], setupFilesAfterEnv: ['<rootDir>/setupTests.js'],
reporters: [ reporters: ['default', 'github-actions'],
'summary', // nice overall summary
'github-actions', // adds inline annotations in PRs
],
}; };

View File

@@ -18,7 +18,7 @@
}, },
"devDependencies": { "devDependencies": {
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"jest": "^27.0.1", "jest": "^28.1.3",
"pino-pretty": "^11.2.2", "pino-pretty": "^11.2.2",
"tmp": "^0.2.3" "tmp": "^0.2.3"
} }

View File

@@ -2,8 +2,5 @@ module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
testEnvironment: 'node', testEnvironment: 'node',
moduleFileExtensions: ['js'], moduleFileExtensions: ['js'],
reporters: [ reporters: ['default', 'github-actions'],
'summary', // nice overall summary
'github-actions', // adds inline annotations in PRs
],
}; };

View File

@@ -2,8 +2,5 @@ module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
testEnvironment: 'node', testEnvironment: 'node',
moduleFileExtensions: ['js'], moduleFileExtensions: ['js'],
reporters: [ reporters: ['default', 'github-actions'],
'summary', // nice overall summary
'github-actions', // adds inline annotations in PRs
],
}; };

View File

@@ -2,8 +2,5 @@ module.exports = {
preset: 'ts-jest', preset: 'ts-jest',
testEnvironment: 'node', testEnvironment: 'node',
moduleFileExtensions: ['js'], moduleFileExtensions: ['js'],
reporters: [ reporters: ['default', 'github-actions'],
'summary', // nice overall summary
'github-actions', // adds inline annotations in PRs
],
}; };