jest-environment-jsdom
Advanced tools
Comparing version 14.0.0 to 14.2.0-alpha.ca8bfb6e
@@ -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" | ||
} | ||
} |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
1827
45
1
80
2
+ Addedjest-mock@14.2.0-alpha.ca8bfb6e(transitive)
+ Addedjest-util@14.2.0-alpha.ca8bfb6e(transitive)
- Removedjest-mock@14.0.0(transitive)
- Removedjest-util@14.0.0(transitive)