Socket
Socket
Sign inDemoInstall

jest-environment-jsdom

Package Overview
Dependencies
Maintainers
5
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 15.1.1 to 15.2.0-alpha.c681f819

10

build/index.js

@@ -17,2 +17,3 @@ /**

const installCommonGlobals = require('jest-util').installCommonGlobals;
const ModuleMocker = require('jest-mock');

@@ -25,2 +26,3 @@ class JSDOMEnvironment {

constructor(config) {

@@ -31,8 +33,10 @@ // lazy require

this.global = this.document.defaultView;
const global = this.global = this.document.defaultView;
// Node's error-message stack size is limited at 10, but it's pretty useful
// to see more than that when a test fails.
this.global.Error.stackTraceLimit = 100;
installCommonGlobals(this.global, config.globals);
this.fakeTimers = new FakeTimers(this.global, config);
installCommonGlobals(global, config.globals);
this.moduleMocker = new ModuleMocker();
this.fakeTimers = new FakeTimers(global, this.moduleMocker, config);
}

@@ -39,0 +43,0 @@

{
"name": "jest-environment-jsdom",
"version": "15.1.1",
"version": "15.2.0-alpha.c681f819",
"repository": {

@@ -11,5 +11,6 @@ "type": "git",

"dependencies": {
"jsdom": "^9.4.0",
"jest-util": "^15.1.1"
"jest-mock": "^15.2.0-alpha.c681f819",
"jest-util": "^15.2.0-alpha.c681f819",
"jsdom": "^9.5.0"
}
}
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