Skip to content

Commit

Permalink
condition test if less than node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
zbenamram committed Aug 14, 2024
1 parent 1cdb0ca commit 1a48a6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/e2e/proxy-native-fetch.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 1a48a6c

Please sign in to comment.