Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-fixed-jsdom

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-fixed-jsdom - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

1

index.js

@@ -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)
})

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc