Skip to content

Commit 14b8011

Browse files
committed
Fix frontend tests workflow
1 parent 0443513 commit 14b8011

File tree

4 files changed

+5
-35
lines changed

4 files changed

+5
-35
lines changed

.github/workflows/frontend-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
run: npm ci
2828

2929
- name: Run tests
30+
env:
31+
VITE_BASE_URL_API: https://jsonplaceholder.typicode.com
3032
run: npm test
3133

3234
- name: Generate test summary

backend/src/iac/backend-stack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import * as elbv2 from 'aws-cdk-lib/aws-elasticloadbalancingv2';
66
import * as cognito from 'aws-cdk-lib/aws-cognito';
77
import * as iam from 'aws-cdk-lib/aws-iam';
88
import * as elbv2_actions from 'aws-cdk-lib/aws-elasticloadbalancingv2-actions';
9-
import * as constructs from 'constructs';
9+
import { Construct } from 'constructs';
1010

1111
interface BackendStackProps extends cdk.StackProps {
1212
environment: string;
1313
}
1414

1515
export class BackendStack extends cdk.Stack {
16-
constructor(scope: constructs.Construct, id: string, props: BackendStackProps) {
16+
constructor(scope: Construct, id: string, props: BackendStackProps) {
1717
super(scope, id, props);
1818

1919
const isProd = props.environment === 'production';
@@ -165,7 +165,7 @@ export class BackendStack extends cdk.Stack {
165165
defaultAction: new elbv2_actions.AuthenticateCognitoAction({
166166
userPool,
167167
userPoolClient,
168-
userPoolDomain: userPoolDomain.domainName,
168+
userPoolDomain: userPoolDomain,
169169
next: elbv2.ListenerAction.forward([targetGroup]),
170170
onUnauthenticatedRequest: elbv2.UnauthenticatedAction.AUTHENTICATE,
171171
}),

backend/src/iac/simple-stack.test.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

backend/src/iac/simple-stack.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)