From 1d388cab30c5d53dfc71bed0c3a1d0e0f79a7dfc Mon Sep 17 00:00:00 2001 From: Cody Olsen Date: Fri, 29 Nov 2024 13:57:10 +0100 Subject: [PATCH] chore: skip tests that require `Promise.withResolvers` if not provided --- src/machine/__tests__/documentMutatorMachine.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/__tests__/documentMutatorMachine.test.ts b/src/machine/__tests__/documentMutatorMachine.test.ts index a1c6446..9af5967 100644 --- a/src/machine/__tests__/documentMutatorMachine.test.ts +++ b/src/machine/__tests__/documentMutatorMachine.test.ts @@ -34,7 +34,7 @@ const createFakeClient = ( return client as unknown as SanityClient } -describe('observing documents', () => { +describe.runIf('withResolvers' in Promise)('observing documents', () => { test('observing a document that does not exist on the backend', async () => { const client = createFakeClient()