Skip to content

Commit 8756f84

Browse files
committed
fixup! Feedback: Set env vars in index.component.test before module import
1 parent 607c188 commit 8756f84

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

lambdas/client-transform-filter-lambda/src/__tests__/index.component.test.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,6 @@ jest.mock("aws-embedded-metrics", () => ({
4949
},
5050
}));
5151

52-
// Set environment variables before importing the handler/module under test so that
53-
// services constructed at module import time (e.g. applicationsMapService) see
54-
// the correct configuration.
55-
process.env.CLIENT_SUBSCRIPTION_CONFIG_BUCKET = "test-bucket";
56-
process.env.CLIENT_SUBSCRIPTION_CONFIG_PREFIX = "client_subscriptions/";
57-
process.env.CLIENT_SUBSCRIPTION_CACHE_TTL_SECONDS = "60";
58-
process.env.METRICS_NAMESPACE = "test-namespace";
59-
process.env.ENVIRONMENT = "test";
60-
process.env.APPLICATIONS_MAP_PARAMETER = "/test/applications-map";
61-
6252
import { GetObjectCommand, NoSuchKey } from "@aws-sdk/client-s3";
6353
import { GetParameterCommand } from "@aws-sdk/client-ssm";
6454
import type { SQSRecord } from "aws-lambda";

0 commit comments

Comments
 (0)