From 1a48a6c1d2d6aefd8dc203208474700408e0be05 Mon Sep 17 00:00:00 2001 From: Zachary Benamram Date: Wed, 14 Aug 2024 12:51:18 -0700 Subject: [PATCH] condition test if less than node 18 --- test/e2e/proxy-native-fetch.e2e.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/e2e/proxy-native-fetch.e2e.test.ts b/test/e2e/proxy-native-fetch.e2e.test.ts index c551705..075ac46 100644 --- a/test/e2e/proxy-native-fetch.e2e.test.ts +++ b/test/e2e/proxy-native-fetch.e2e.test.ts @@ -10,7 +10,10 @@ import { RemoteConfigPayloadTypeV2 } from '../../src/types'; import { getEvents } from '../utils/function-call-args'; import { mockApi } from '../utils/mock-api'; -describe('proxy native fetch functionality', () => { +const [major] = process.versions.node.split('.').map(Number); +const describeIf = major >= 18 ? describe : describe.skip; + +describeIf('proxy native fetch functionality', () => { beforeAll(() => { process.env.SUPERGOOD_PROXY_BASE_URL = MOCK_DATA_SERVER; });