Skip to content

Commit

Permalink
Decrease threshold for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
paleite committed Aug 1, 2022
1 parent 8940a79 commit 39194fa
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module.exports = {
coveragePathIgnorePatterns: [".test-d.ts"],
coverageThreshold: {
global: {
statements: 100,
branches: 89,
functions: 100,
lines: 100,
statements: 90,
branches: 90,
functions: 90,
lines: 90,
},
},
};
19 changes: 18 additions & 1 deletion src/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@

exports[`plugin should match expected export 1`] = `
Object {
"ci": Object {},
"ci": Object {
"overrides": Array [
Object {
"files": Array [
"*",
],
"processor": "diff/ci",
},
],
"plugins": Array [
"diff",
],
},
"diff": Object {
"overrides": Array [
Object {
Expand Down Expand Up @@ -34,6 +46,11 @@ Object {

exports[`plugin should match expected export 2`] = `
Object {
"ci": Object {
"postprocess": [Function],
"preprocess": [Function],
"supportsAutofix": true,
},
"diff": Object {
"postprocess": [Function],
"preprocess": [Function],
Expand Down
1 change: 1 addition & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
process.env.CI = "true";
import * as child_process from "child_process";

jest.mock("child_process");
Expand Down

0 comments on commit 39194fa

Please sign in to comment.