Skip to content

Commit

Permalink
πŸ› fix reporter selection
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome committed May 3, 2024
1 parent fed3b94 commit 35defd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/jest-configs/src/layers/reporters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const reporter_sets: Record<'default' | 'github' | 'gitlab', Reporter[]> = {

const reporter: Reporter[] = ((): Reporter[] => {
/* eslint-disable n/no-process-env */
if (process.env.GITHUB_ACTIONS !== 'true') return reporter_sets.github;
else if (process.env.GITLAB_CI !== 'true') return reporter_sets.gitlab;
if (process.env.GITHUB_ACTIONS === 'true') return reporter_sets.github;
else if (process.env.GITLAB_CI === 'true') return reporter_sets.gitlab;
else return reporter_sets.default;
/* eslint-enable n/no-process-env */
})();
Expand Down

0 comments on commit 35defd9

Please sign in to comment.