Skip to content

Commit 3aab73b

Browse files
CCM-12875: Terraform changes, and updates
1 parent 1c3a1ff commit 3aab73b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

lambdas/pdm-mock-api/jest.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ const config: Config = {
1414
'!src/**/*.test.ts',
1515
],
1616

17+
reporters: [
18+
'default',
19+
[
20+
'jest-html-reporter',
21+
{
22+
pageTitle: 'Test Report',
23+
outputPath: './.reports/unit/test-report.html',
24+
includeFailureMsg: true,
25+
},
26+
],
27+
],
28+
1729
coverageThreshold: {
1830
global: {
1931
branches: 80,

lambdas/pdm-mock-api/src/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ export const loadConfig = (): Config => {
3535
};
3636

3737
export class ParameterStoreService {
38-
private ssmClient: SSMClient;
38+
readonly ssmClient: SSMClient;
3939

40-
private cache: Map<string, { value: string; timestamp: number }> = new Map();
40+
readonly cache: Map<string, { value: string; timestamp: number }> = new Map();
4141

42-
private cacheTtl: number = 5 * 60 * 1000; // 5 minutes
42+
readonly cacheTtl: number = 5 * 60 * 1000; // 5 minutes
4343

4444
constructor() {
4545
this.ssmClient = new SSMClient({

0 commit comments

Comments
 (0)