TestHttpClient
Fluent HTTP client for making test requests.
const response = await module.http .forHost('example.com') .post('/api/v1/users') .withBody({ name: 'Test' }) .send()response.assertCreated() Copy
const response = await module.http .forHost('example.com') .post('/api/v1/users') .withBody({ name: 'Test' }) .send()response.assertCreated()
Create a DELETE request
Set the host for the request
Create a GET request
Create a PATCH request
Create a POST request
Create a PUT request
Set default headers for all requests
TestHttpClient
Fluent HTTP client for making test requests.
Example