Are there any plans for an integration test enviro...
# sst
r
Are there any plans for an integration test environment? Would be great to support a development flow using an integrated environment rather than unit tests. Would be a game-changer. I'm sure it could be put together with existing tools, but to have it out of the box 🕺
o
What do you mean by integration test env? I have jest tests for each lambda, that call its handler programmatically - but nothing is mocked - it uses real AWS resources to execute
r
That's cool. That's what I'm looking for. How do you call the handlers programmatically? Do you use the lambda invoke API?
o
I load up the handler file and just call the function. Mock out the aws event and context
r
Hmmmm.. interesting. Ok cool. Thanks. I'm thinking I might try it fully integrated where jest will invoke the lambda that is running, either locally with sst start or on AWS when deployed. That way it will use AWS environment, permissions, etc. It would probably do for most cases though!