Skip to content

Commit 5b48e62

Browse files
committed
Default project and component vars in ITs as they won't change
1 parent 00292ff commit 5b48e62

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/integration/helpers/deployment.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,14 @@ export type DeploymentDetails = {
99
export function getDeploymentDetails(): DeploymentDetails {
1010
const region = process.env.AWS_REGION ?? "eu-west-2";
1111
const environment = process.env.ENVIRONMENT;
12-
const project = process.env.PROJECT;
13-
const component = process.env.COMPONENT;
12+
const project = process.env.PROJECT ?? "nhs";
13+
const component = process.env.COMPONENT ?? "callbacks";
1414
const accountId = process.env.AWS_ACCOUNT_ID;
1515

1616
if (!environment) {
1717
throw new Error("ENVIRONMENT environment variable must be set");
1818
}
19-
if (!project) {
20-
throw new Error("PROJECT environment variable must be set");
21-
}
22-
if (!component) {
23-
throw new Error("COMPONENT environment variable must be set");
24-
}
19+
2520
if (!accountId) {
2621
throw new Error("AWS_ACCOUNT_ID environment variable must be set");
2722
}

0 commit comments

Comments
 (0)