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.
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 extendsError
. Tracking #10 for better error support that is comparable to V3 SDK.