We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 859d236 commit cbe133dCopy full SHA for cbe133d
packages/vitest/src/integrations/env/utils.ts
@@ -5,7 +5,6 @@ const skipKeys = [
5
'self',
6
'top',
7
'parent',
8
- 'URL',
9
]
10
11
export function getWindowKeys(global: any, win: any) {
test/core/test/environments/node.spec.ts
@@ -0,0 +1,11 @@
1
+// @vitest-environment node
2
+
3
+import { expect, test } from 'vitest'
4
+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()
+})
0 commit comments