From f9939716067fc92511feabbf8b248c680b136970 Mon Sep 17 00:00:00 2001 From: JuanGalilea Date: Thu, 9 Apr 2026 09:34:12 +0200 Subject: [PATCH] feat(testStandby): allow for custom paths and headers --- lib/lib.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/lib.ts b/lib/lib.ts index 1702740..b4a5a09 100644 --- a/lib/lib.ts +++ b/lib/lib.ts @@ -143,9 +143,14 @@ export const it = testActor; */ const createStartStandbyFn = (standbyTask: StandbyTask) => { const { standbyUrl } = standbyTask; - return async ({ input }: Pick, 'input'>) => { - const response = await fetch(standbyUrl, { + return async ({ + input, + path = '', + headers = {}, + }: Pick, 'input'> & { path?: string; headers?: Record }) => { + const response = await fetch(standbyUrl + path, { headers: { + ...headers, Authorization: `Bearer ${apifyClient.token}`, }, method: 'POST',