-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathjest.frick.config.js
More file actions
63 lines (62 loc) · 2.7 KB
/
Copy pathjest.frick.config.js
File metadata and controls
63 lines (62 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Bank Frick coverage gate. Kept out of package.json's shared Jest config so the strict per-file 100%
// threshold on the shared iso20022.service.ts cannot red an unrelated `test:cov` run - only the
// dedicated test:frick:cov step (with its own --collectCoverageFrom scope) enforces it.
const base = require('./package.json').jest;
module.exports = {
...base,
// Coverage instrumentation must match the production build's emit. The main suite runs ts-jest in
// transpile-only mode (isolatedModules), which emits the emitDecoratorMetadata helpers differently
// and produces phantom uncovered branches on dependency-injected constructors. Compile with full
// type info here (tsconfig.coverage.json sets isolatedModules: false) so the 100% gate stays exact.
transform: { '^.+\\.(t|j)s$': ['ts-jest', { tsconfig: 'tsconfig.coverage.json' }] },
coverageThreshold: {
'src/integration/bank/dto/frick.dto.ts': { branches: 100, functions: 100, lines: 100, statements: 100 },
'src/integration/bank/services/frick.service.ts': { branches: 100, functions: 100, lines: 100, statements: 100 },
'src/integration/bank/services/iso20022.service.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'src/config/frick.config.ts': { branches: 100, functions: 100, lines: 100, statements: 100 },
'src/subdomains/supporting/bank-tx/bank-tx/services/bank-tx-frick.service.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'src/subdomains/supporting/bank-tx/bank-tx/services/bank-tx-outgoing-match.service.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'src/subdomains/supporting/fiat-output/fiat-output-frick.service.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
// Frick vIBAN money path: claim/reserve/finalize/reset/merge-dissolution live in virtual-iban.service.ts
// and frick-viban.provider.ts (no longer excluded — those files hold the issuance logic, not just
// supporting glue). Automatic reconciliation remains gated for stuck-intent recovery and orphan cleanup.
'src/subdomains/supporting/bank/virtual-iban/virtual-iban.service.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'src/subdomains/supporting/bank/virtual-iban/providers/frick-viban.provider.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
'src/subdomains/supporting/bank/virtual-iban/virtual-iban-frick-issuance-reconciliation.service.ts': {
branches: 100,
functions: 100,
lines: 100,
statements: 100,
},
},
};