serverless-offline icon indicating copy to clipboard operation
serverless-offline copied to clipboard

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

Open jvgeee opened this issue 1 year ago • 1 comments

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?

jvgeee avatar Mar 20 '23 05:03 jvgeee

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

HubooDeclan avatar Jun 08 '23 13:06 HubooDeclan