jest-fixed-jsdom
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -18,2 +18,3 @@ const JSDOMEnvironment = require('jest-environment-jsdom').default | ||
this.global.structuredClone = structuredClone | ||
this.global.URL = URL | ||
} | ||
@@ -20,0 +21,0 @@ } |
@@ -0,1 +1,3 @@ | ||
const { URL: BuiltinURL } = require('node:url') | ||
test('exposes "Blob"', async () => { | ||
@@ -91,1 +93,5 @@ expect(globalThis).toHaveProperty('Blob') | ||
test('exposes "URL"', () => { | ||
expect(globalThis).toHaveProperty('URL') | ||
expect(new URL('http://localhost')).toBeInstanceOf(BuiltinURL) | ||
}) |
{ | ||
"name": "jest-fixed-jsdom", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A superset of the JSDOM environment for Jest that respects Node.js globals.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8231
110