The request fixture methods seems to follow the redirects by default. It would be great if there was an option to disable this behaviour.
const response = await request.get('http://localhost:3000/url', { followRedirects: false })
expect(response.status()).toBe(302)
expect(response.headers()['Location']).toBe('/login')
The
requestfixture methods seems to follow the redirects by default. It would be great if there was an option to disable this behaviour.