Skip to content

Commit

Permalink
Add GitHub Action reporter for Jest unit and E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pierlon committed May 6, 2021
1 parent 6961cb9 commit 87f8be4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/e2e/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@ module.exports = {
'.git',
'node_modules',
],
reporters: [ [ 'jest-silent-reporter', { useDots: true } ] ],
reporters: [
[ 'jest-silent-reporter', { useDots: true } ],
'<rootDir>/node_modules/@wordpress/scripts/config/jest-github-actions-reporter.js',
],
};
5 changes: 4 additions & 1 deletion tests/js/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@ module.exports = {
],
coverageReporters: [ 'lcov' ],
coverageDirectory: '<rootDir>/build/logs',
reporters: [ [ 'jest-silent-reporter', { useDots: true } ] ],
reporters: [
[ 'jest-silent-reporter', { useDots: true } ],
'<rootDir>/node_modules/@wordpress/scripts/config/jest-github-actions-reporter.js',
],
};

0 comments on commit 87f8be4

Please sign in to comment.