agiledigital/serverless-sns-sqs-lambda

Use runServerless utility for tests

Closed this issue ยท 3 comments

To make the unit tests more robust we might be able to use the runServerless utility that the serverless library uses for testing.

https://github.com/serverless/test/blob/master/docs/run-serverless.md#run-serverless

It will set up the context properly so we can test things like schema validation in unit tests.

๐ŸŽ‰ This issue has been resolved in version 2.0.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€