Skip to content

Commit

Permalink
chore(llc): coverage including untested files
Browse files Browse the repository at this point in the history
  • Loading branch information
aboissiere-ledger committed Jul 1, 2023
1 parent be437fa commit b681205
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-buckets-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

Fix jest config to generate coverage report and include untested files
8 changes: 4 additions & 4 deletions libs/ledger-live-common/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,8 @@ const defaultConfig = {
},
},
testEnvironment: "node",
coverageDirectory: "./coverage/",
coverageReporters: ["json", "lcov", "clover"],
reporters,
collectCoverage: true,
coveragePathIgnorePatterns: ["src/__tests__"],
coveragePathIgnorePatterns: ["src/__tests__/test-helpers"],
modulePathIgnorePatterns: [
"<rootDir>/benchmark/.*",
"<rootDir>/cli/.yalc/.*",
Expand All @@ -44,6 +41,9 @@ const defaultConfig = {
};

export default {
collectCoverage: true,
collectCoverageFrom: ["src/**/*.{ts,tsx}"],
coverageReporters: ["json", "lcov", "clover", "json-summary"],
projects: [
{
...defaultConfig,
Expand Down

0 comments on commit b681205

Please sign in to comment.