Skip to content

Commit

Permalink
ci: configure Jest for GitHub Actions reporting (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 authored Oct 21, 2024
1 parent 6ef23f4 commit f03557e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
// noinspection NpmUsedModulesInstalled
const { env } = require('process')

/** @type {import('@jest/types').Config.GlobalConfig} */
module.exports = {
projects: ['<rootDir>/projects/ngx-meta/schematics'],

// https://github.com/jestjs/jest/blob/v29.7.0/docs/Configuration.md#github-actions-reporter
reporters: Boolean(env['CI'])
? [['github-actions', { silent: false }], 'summary']
: undefined,

coverageDirectory: '<rootDir>/coverage/jest',
coverageReporters: ['json', 'text'],
collectCoverageFrom: ['<rootDir>/**/*.ts', '!**/testing/**'],
Expand Down

0 comments on commit f03557e

Please sign in to comment.