If you're making an API and using something that generates an OpenAPI Specification for you, like Swagger, then Japa has a nifty plugin for you, called OpenAPI Assertions.
npm i -D @japa/openapi-assertionsFor this, we won't want to use Japa's API client to send the request; instead, we'll want to use axios, superagent, superset, request, or light-my-request. These are the responses supported by the @japa/openapi-assertions plugin. I'll go ahead and use axios here, and I'll install it as a normal dependency since I might not explicitly use it for testing.