Skip to content

Commit

Permalink
skip test on old nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 20, 2024
1 parent da7d505 commit 6c9f0e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions e2e/__tests__/explicitResourceManagement.test.ts
Expand Up @@ -6,6 +6,7 @@
*/

import {resolve} from 'path';
import {onNodeVersions} from '@jest/test-utils';
import {runYarnInstall} from '../Utils';
import runJest from '../runJest';

Expand All @@ -15,7 +16,9 @@ beforeAll(() => {
runYarnInstall(DIR);
});

test('Explicit resource management is supported', () => {
const result = runJest(DIR);
expect(result.exitCode).toBe(0);
onNodeVersions('^18.18.0 || >=20.4.0', () => {
test('Explicit resource management is supported', () => {
const result = runJest(DIR);
expect(result.exitCode).toBe(0);
});
});

0 comments on commit 6c9f0e6

Please sign in to comment.