I’m having a hard time testing the `z.request()` in combination with the `skipThrowForStatus: true` setting.
My understanding from running on the Zapier platform is, that it does not throw an Error but returns the response instead.
However running with `zapier test` the following code with the node platform (current zapier-platform-core@12.0.3):
const results = await appTester(async (z, bundle) => {
for (let step = 0; step < 100; step++) {
console.log(step)
/** @type {ZapierZRequestResponse} */
try {
const response = await z.request({
url: `${bundle.authData.server}/api/endpoint/`,
headers: {Authorization: `Token ${bundle.authData.api_token}`},
skipThrowForStatus: true,
})
} catch (e) {
const ee = e
}
}
return null
}, bundle)
it always throws on a 4xx. But the reason to test here is to actually provoke the error and then handle it for which the HTTP response unfiltered is required and for which I thought skipThrowForStatus: true was appropriate.
Is there a way to make use of that request option property within tests?