dherault / serverless-offline

Emulate AWS λ and API Gateway locally when developing your Serverless project
MIT License
5.19k stars 796 forks source link

What happened to the --exec flag and what's the workaround for integration tests? #1672

Open jvgeee opened 1 year ago

jvgeee commented 1 year ago

I had an old project that worked on v3.20.3, we were starting up the offline server and then running integration tests against it, e.g.

serverless offline start -stage=mock --exec \"npm run integration\"

In later versions it seems like this flag has been removed from serverless-offline. So what's the workaround to run integration tests?

HubooDeclan commented 1 year ago

https://www.npmjs.com/package/start-server-and-test