Skip to content

Commit 5f3b9ce

Browse files
Add unit tests and code cleanup
1 parent 5412b1f commit 5f3b9ce

File tree

9 files changed

+649
-61
lines changed

9 files changed

+649
-61
lines changed

infrastructure/terraform/components/app/module_templates_api.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ module "templates_api" {
99
csi = local.csi
1010
log_retention_in_days = var.log_retention_in_days
1111

12-
cognito_config = jsondecode(aws_ssm_parameter.cognito_config.value)
12+
cognito_config = jsondecode(data.aws_ssm_parameter.cognito_config.value)
1313
}
Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
resource "aws_ssm_parameter" "cognito_config" {
2-
1+
data "aws_ssm_parameter" "cognito_config" {
32
name = "/${local.csi}/cognito_config"
4-
description = "Configuration values for Cognito instance"
5-
type = "SecureString"
6-
value = jsonencode({
7-
user_pool_id = "placeholder"
8-
user_pool_client_id = "placeholder"
9-
})
10-
11-
lifecycle {
12-
ignore_changes = [
13-
value,
14-
]
15-
}
163
}

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const config: Config = {
7878
'fixture',
7979
'helpers.ts',
8080
'/tests/test-team/',
81-
'.build'
81+
'.build',
8282
],
8383

8484
// Set the absolute path for imports

lambdas/authorizer/jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
transform: { '\\.ts$': '@swc/jest' },
3+
testPathIgnorePatterns: ['.build' ]
34
};

0 commit comments

Comments
 (0)