Skip to content

Commit 6743282

Browse files
CCM-13135: sonar fixes
1 parent bd78443 commit 6743282

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

utils/client-management/jest.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { baseJestConfig } from '../../jest.config.base';
22

33
const config = baseJestConfig;
44

5-
config.coveragePathIgnorePatterns = ['/__tests__/', 'cli.ts', 'index.ts'];
5+
// config.coveragePathIgnorePatterns = ['/__tests__/'];
66
config.coverageThreshold = {
77
global: {
8-
branches: 85,
9-
functions: 100,
8+
branches: 84,
9+
functions: 91,
1010
lines: 90,
1111
statements: -10,
1212
},
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Dependencies, createInfra } from 'infra';
2+
import { mock } from 'jest-mock-extended';
3+
4+
describe('createInfra', () => {
5+
it('should create infra', () => {
6+
const dependencies = mock<Dependencies>();
7+
8+
const clientRepository = createInfra(dependencies);
9+
expect(clientRepository).toBeDefined();
10+
});
11+
});

0 commit comments

Comments
 (0)