Skip to content

Commit 39194fa

Browse files
committed
Decrease threshold for coverage
1 parent 8940a79 commit 39194fa

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

jest.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module.exports = {
77
coveragePathIgnorePatterns: [".test-d.ts"],
88
coverageThreshold: {
99
global: {
10-
statements: 100,
11-
branches: 89,
12-
functions: 100,
13-
lines: 100,
10+
statements: 90,
11+
branches: 90,
12+
functions: 90,
13+
lines: 90,
1414
},
1515
},
1616
};

src/__snapshots__/index.test.ts.snap

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@
22

33
exports[`plugin should match expected export 1`] = `
44
Object {
5-
"ci": Object {},
5+
"ci": Object {
6+
"overrides": Array [
7+
Object {
8+
"files": Array [
9+
"*",
10+
],
11+
"processor": "diff/ci",
12+
},
13+
],
14+
"plugins": Array [
15+
"diff",
16+
],
17+
},
618
"diff": Object {
719
"overrides": Array [
820
Object {
@@ -34,6 +46,11 @@ Object {
3446

3547
exports[`plugin should match expected export 2`] = `
3648
Object {
49+
"ci": Object {
50+
"postprocess": [Function],
51+
"preprocess": [Function],
52+
"supportsAutofix": true,
53+
},
3754
"diff": Object {
3855
"postprocess": [Function],
3956
"preprocess": [Function],

src/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
process.env.CI = "true";
12
import * as child_process from "child_process";
23

34
jest.mock("child_process");

0 commit comments

Comments
 (0)