Skip to content

Commit

Permalink
Add test with no AWS SDK for JavaScript (v2) (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Mar 9, 2022
1 parent 8ef2e6d commit 812ab49
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rude-guests-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"aws-sdk-js-codemod": patch
---

Add test with no AWS SDK for JavaScript (v2)
16 changes: 16 additions & 0 deletions src/transforms/v2-to-v3/__fixtures__/no-aws-sdk-v2.input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Alexa SDKs
import * as AlexaSDK from "alexa-sdk";
import * as Alexa from "ask-sdk";
import * as AlexaCore from "ask-sdk-core";
import * as DdbAdapter from "ask-sdk-dynamodb-persistence-adapter";
import * as Runtime from "ask-sdk-runtime";
import * as S3Adapter from "ask-sdk-s3-persistence-adapter";
import * as ExpressAdapter from "ask-sdk-express-adapter";
import * as AlexaSmApi from "ask-smapi-sdk";

// Amplify SDKs
import * as AwsAmplify from "aws-amplify";
import * as AwsAmplifyReact from "@aws-amplify/ui-react";

// AWS SDK for JavaScript (v3)
import * as S3 from "@aws-sdk/client-s3";
16 changes: 16 additions & 0 deletions src/transforms/v2-to-v3/__fixtures__/no-aws-sdk-v2.output.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Alexa SDKs
import * as AlexaSDK from "alexa-sdk";
import * as Alexa from "ask-sdk";
import * as AlexaCore from "ask-sdk-core";
import * as DdbAdapter from "ask-sdk-dynamodb-persistence-adapter";
import * as Runtime from "ask-sdk-runtime";
import * as S3Adapter from "ask-sdk-s3-persistence-adapter";
import * as ExpressAdapter from "ask-sdk-express-adapter";
import * as AlexaSmApi from "ask-smapi-sdk";

// Amplify SDKs
import * as AwsAmplify from "aws-amplify";
import * as AwsAmplifyReact from "@aws-amplify/ui-react";

// AWS SDK for JavaScript (v3)
import * as S3 from "@aws-sdk/client-s3";

0 comments on commit 812ab49

Please sign in to comment.