Socket
Socket
Sign inDemoInstall

jest-environment-jsdom

Package Overview
Dependencies
Maintainers
4
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-environment-jsdom - npm Package Compare versions

Comparing version 14.0.0 to 14.2.0-alpha.ca8bfb6e

32

build/index.js

@@ -26,3 +26,3 @@ /**

// lazy require
this.document = require('jsdom').jsdom( /* markup */undefined, {
this.document = require('jsdom').jsdom( /* markup */undefined, {
url: config.testURL });

@@ -35,32 +35,32 @@

installCommonGlobals(this.global, config.globals);
this.fakeTimers = new FakeTimers(this.global);}
this.fakeTimers = new FakeTimers(this.global);
}
dispose() {
if (this.fakeTimers) {
this.fakeTimers.dispose();}
this.fakeTimers.dispose();
}
if (this.global) {
this.global.close();}
this.global.close();
}
this.global = null;
this.document = null;
this.fakeTimers = null;}
this.fakeTimers = null;
}
runScript(script) {
if (this.global) {
return require('jsdom').evalVMScript(this.global, script);}
return require('jsdom').evalVMScript(this.global, script);
}
return null;
}
return null;}
runWithRealTimers(cb) {
if (this.global && this.fakeTimers) {
this.fakeTimers.runWithRealTimers(cb);}}}
this.fakeTimers.runWithRealTimers(cb);
}
}}
module.exports = JSDOMEnvironment;
{
"name": "jest-environment-jsdom",
"version": "14.0.0",
"version": "14.2.0-alpha.ca8bfb6e",
"repository": {

@@ -12,4 +12,4 @@ "type": "git",

"jsdom": "^9.4.0",
"jest-util": "^14.0.0"
"jest-util": "^14.2.0-alpha.ca8bfb6e"
}
}
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