Skip to content

Commit 3a3db4c

Browse files
committed
test: raise coverage thresholds to match new test coverage
- nestjs-auth: 50/65 → 75/90 (branches/statements) - nestjs-storage: 65/80 → 75/90 - nestjs-notifications: 38/50 → 80/88 - nestjs-audit-log: 80/80 → 80/90 - root preset: 35/40 → 65/80
1 parent 07489d8 commit 3a3db4c

5 files changed

Lines changed: 18 additions & 18 deletions

File tree

jest.preset.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ const baseConfig: Config = {
1111
testEnvironment: 'node',
1212
coverageThreshold: {
1313
global: {
14-
branches: 35,
15-
functions: 40,
16-
lines: 40,
17-
statements: 40,
14+
branches: 65,
15+
functions: 65,
16+
lines: 80,
17+
statements: 80,
1818
},
1919
},
2020
};

packages/nestjs-audit-log/jest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const config: Config = {
88
global: {
99
branches: 80,
1010
functions: 80,
11-
lines: 80,
12-
statements: 80,
11+
lines: 90,
12+
statements: 90,
1313
},
1414
},
1515
};

packages/nestjs-auth/jest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ const config: Config = {
66
rootDir: '.',
77
coverageThreshold: {
88
global: {
9-
branches: 50,
10-
functions: 55,
11-
lines: 65,
12-
statements: 65,
9+
branches: 75,
10+
functions: 90,
11+
lines: 90,
12+
statements: 90,
1313
},
1414
},
1515
};

packages/nestjs-notifications/jest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ const config: Config = {
77
rootDir: '.',
88
coverageThreshold: {
99
global: {
10-
branches: 38,
11-
functions: 50,
12-
lines: 50,
13-
statements: 50,
10+
branches: 80,
11+
functions: 90,
12+
lines: 88,
13+
statements: 88,
1414
},
1515
},
1616
};

packages/nestjs-storage/jest.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ const config: Config = {
55
...baseConfig,
66
coverageThreshold: {
77
global: {
8-
branches: 65,
9-
functions: 80,
10-
lines: 80,
11-
statements: 80,
8+
branches: 75,
9+
functions: 90,
10+
lines: 90,
11+
statements: 90,
1212
},
1313
},
1414
};

0 commit comments

Comments
 (0)