jest-environment-jsdom
Advanced tools
Comparing version 15.1.1 to 15.2.0-alpha.c681f819
@@ -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" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
1867
42
3
2
+ Addedjest-file-exists@15.2.0-alpha.c681f819(transitive)
+ Addedjest-mock@15.2.0-alpha.c681f819(transitive)
+ Addedjest-util@15.2.0-alpha.c681f819(transitive)
- Removedjest-file-exists@15.0.0(transitive)
- Removedjest-mock@15.0.0(transitive)
- Removedjest-util@15.1.1(transitive)
Updatedjsdom@^9.5.0