start-server-and-test
start-server-and-test copied to clipboard
Change response status code
Hey! Hi guys! Great library! Love to use it! My question is: Is it possible to implement feature that will start test not only after status code 200 received? My dev server gives status 401. So it will be great if we can change it to something like "--status=401", it will indicate that after performing request to servers port, It will launch tests after receiving given status Im talking about Line 93, can we add like custom status flag?
This is something I need too, but I found an alternative is to have a healthcheck endpoint that always returns 200 and ping that. For example:
start-server-and-test start-feature http://localhost:3007/health test:e2e
that's actually a pretty good solution :) probably need to rework some of my middleware's