sam-goodwin / itty-aws

A teeny tiny ~49KB AWS SDK for TypeScript
104 stars 5 forks source link

feat: set up repeatable test and improve error #11

Closed sam-goodwin closed 1 year ago

sam-goodwin commented 1 year ago

This sets up a script that will run before jest does and create all the necessary AWS resources required by the tests. Resources are created using itty-aws ;)

I also added an AWSError class - throwing the JSON object lost the stack trace so we needed class that that extends Error. Tracking #10 for better error support that is comparable to V3 SDK.