From e52fb74b4a238acfb93e80531b11108540e0d224 Mon Sep 17 00:00:00 2001 From: Vladimir Sheremet Date: Fri, 22 Sep 2023 12:49:52 +0200 Subject: [PATCH] chore: don't run blob test --- test/core/test/environments/node.spec.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/core/test/environments/node.spec.ts b/test/core/test/environments/node.spec.ts index d9d35e0a1e50..bae933b50ca2 100644 --- a/test/core/test/environments/node.spec.ts +++ b/test/core/test/environments/node.spec.ts @@ -2,7 +2,9 @@ import { expect, test } from 'vitest' -test('url correctly creates an object', () => { +const nodeMajor = Number(process.version.slice(1).split('.')[0]) + +test.runIf(nodeMajor > 16)('url correctly creates an object', () => { expect(() => { URL.createObjectURL(new Blob([])) }).not.toThrow()