Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.6 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.6 KB

aws-sdk-js-tests

Code Sample for testing AWS JS SDK

Steps to test:

  • Fork this repo, and clone your fork
  • Create a local branch in your workspace
  • Add the code for testing AWS JS SDK v2/v3
  • Push code to remote branch on your fork, and share the code for reproducing

Example test for data returned by DynamoDB client:

  • Checkout master branch: git checkout master
  • Run yarn to install dependencies

Node.js:

  • Update REGION in src/config.js
  • Run node src/node.js to run both v2 and v3 clients in Node.js
  • Note that responses returned by clients will be printed in console

Browser:

  • Go through the following steps if you don't have resources created
  • Run yarn watch to create the browser bundle and watch for changes
  • Open index.html in your browser, and note the responses printed on the page
  • The command will watch for changes in files, and update bundle. Reload the webpage to view the changes applied.

License

This library is licensed under the MIT-0 License. See the LICENSE file.