Skip to content

Commit

Permalink
Don't output coverage results to stdout
Browse files Browse the repository at this point in the history
Change the default value of coverageReporters from ["clover", "json",
"lcov", "text"] to not include "text"

https://jestjs.io/docs/configuration#coveragereporters-arraystring--string-options
  • Loading branch information
sethidden committed May 22, 2024
1 parent ae99057 commit ce14a81
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-gifts-work.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@vue-storefront/jest-config": patch
---

Don't output coverage results to stdout
3 changes: 2 additions & 1 deletion engineering-toolkit/jest-config/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ module.exports = {
baseConfig: {
preset: "ts-jest",
transform: {
"^.+\\.(j|t)s$": ["ts-jest", { isolatedModules: true }]
"^.+\\.(j|t)s$": ["ts-jest", { isolatedModules: true }],
},
coverageDirectory: "./coverage/",
collectCoverageFrom: ["src/**/*.ts"],
coverageRepoters: ["clover", "json", "lcov" /* "text" */],
testMatch: ["<rootDir>/**/__tests__/**/*spec.[jt]s?(x)"],
},
};

0 comments on commit ce14a81

Please sign in to comment.