Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/nx-dependencies-5566…
Browse files Browse the repository at this point in the history
…a3e5ff
  • Loading branch information
dharmesh-hemaram authored Nov 12, 2024
2 parents 142f680 + 765067e commit 8cd3e70
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
58 changes: 58 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# codecov.yml

# Configure base settings
#codecov:
# notify:
# require_ci_to_pass: yes # Requires CI tests to pass before sending coverage

# Paths to include coverage reports from multiple projects
coverage:
# Define paths to include or exclude for coverage
paths:
- apps/* # Adjust paths based on your monorepo structure
- libs/* # Example for libraries directory
status:
project:
# Configure status check for each app and library in the monorepo
- apps/acf-configs: # Replace with your actual app directory names
flags:
- configs
target: 80% # Set a target coverage
- apps/acf-extension: # Replace with your actual app directory names
flags:
- extension
target: 80% # Set a target coverage
- apps/acf-options-page: # Replace with your actual app directory names
flags:
- options-page
target: 80% # Set a target coverage
- libs/core-common: # Replace with library names
flags:
- core-common
target: 75%

# Flags help you manage separate coverage for each app and library
flags:
configs:
paths:
- coverage/apps/acf-configs
extension:
paths:
- coverage/apps/acf-extension
options-page:
paths:
- coverage/apps/acf-options-page
core-common:
paths:
- coverage/core/common

# Define how to handle test report merging, threshold settings, etc.
comment:
layout: "reach,diff,flags,files" # Layout of the Codecov comment in PRs
require_changes: no # Only post comments if coverage changes

# Thresholds for failing the coverage checks
coverage:
precision: 2 # Coverage percentage precision
round: up # Round coverage percentages up
range: "70...100" # Acceptable coverage range
2 changes: 1 addition & 1 deletion jest.preset.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
const nxPreset = require('@nx/jest/preset').default;
module.exports = { ...nxPreset };
module.exports = { ...nxPreset, coverageReporters: ['lcov'] };

0 comments on commit 8cd3e70

Please sign in to comment.