How to stub Req in development?

You can also take a look at bypass: Bypass — bypass v2.1.0

Since it’s starting an actual web server, you shouldn’t have any problems with process scopes from tests.