jest reporters

This commit is contained in:
Jan Prochazka
2025-11-27 14:55:37 +01:00
parent cb14bffc5a
commit d04a8fad4c
5 changed files with 14 additions and 8 deletions

View File

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

View File

@@ -84,6 +84,8 @@
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^2.2.0", "copyfiles": "^2.2.0",
"jest-github-actions-reporter": "^1.0.3",
"jest-summary-reporter": "^0.0.2",
"prettier": "^2.2.1", "prettier": "^2.2.1",
"workspaces-run": "^1.0.1" "workspaces-run": "^1.0.1"
} }

View File

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

View File

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

View File

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