Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
fix: update jest
Browse files Browse the repository at this point in the history
  • Loading branch information
arantespp committed Jun 8, 2021
1 parent 0114d1c commit 4fd8b40
Show file tree
Hide file tree
Showing 4 changed files with 836 additions and 19 deletions.
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"@types/uglify-js": "^3.13.0",
"@types/yargs": "^16.0.1",
"faker": "^5.5.3",
"jest": "^26.6.3",
"ts-jest": "^26.5.6"
"jest": "^27.0.4",
"ts-jest": "^27.0.3"
},
"bin": {
"carlin": "./bin/carlin"
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/src/deploy/cloudFormation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {

import {
canDestroyStack,
cloudFormation,
cloudFormationV2,
deleteStack,
deploy,
doesStackExist,
Expand Down Expand Up @@ -99,7 +99,7 @@ export const deployCloudFormation = async ({
return findAndReadCloudFormationTemplate({ templatePath });
})();

await cloudFormation()
await cloudFormationV2()
.validateTemplate({
TemplateBody: JSON.stringify(cloudFormationTemplate, null, 2),
})
Expand Down Expand Up @@ -207,7 +207,7 @@ const emptyStackBuckets = async ({ stackName }: { stackName: string }) => {
const {
NextToken,
StackResourceSummaries,
} = await cloudFormation()
} = await cloudFormationV2()
.listStackResources({ StackName: stackName, NextToken: nextToken })
.promise();

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/deploy/cloudformation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const deployMock = jest.fn();

jest.mock('./cloudFormation.core', () => ({
deploy: deployMock,
cloudFormation: cloudFormationMock,
cloudFormationV2: cloudFormationMock,
}));

const deployLambdaCodeMock = jest.fn();
Expand Down
Loading

0 comments on commit 4fd8b40

Please sign in to comment.