jest-environment-jsdom 18.0.0 → 19.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/build/index.js +3 -2
  2. package/package.json +4 -4
package/build/index.js CHANGED
@@ -12,9 +12,10 @@
12
12
 
13
13
 
14
14
 
15
+
15
16
  const FakeTimers = require('jest-util').FakeTimers;
16
17
  const installCommonGlobals = require('jest-util').installCommonGlobals;
17
- const ModuleMocker = require('jest-mock');
18
+ const mock = require('jest-mock');
18
19
 
19
20
  class JSDOMEnvironment {
20
21
 
@@ -34,7 +35,7 @@ class JSDOMEnvironment {
34
35
  this.global.Error.stackTraceLimit = 100;
35
36
  installCommonGlobals(global, config.globals);
36
37
 
37
- this.moduleMocker = new ModuleMocker(global);
38
+ this.moduleMocker = new mock.ModuleMocker(global);
38
39
  this.fakeTimers = new FakeTimers(global, this.moduleMocker, config);
39
40
  }
40
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-environment-jsdom",
3
- "version": "18.0.0",
3
+ "version": "19.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/facebook/jest.git"
@@ -8,8 +8,8 @@
8
8
  "license": "BSD-3-Clause",
9
9
  "main": "build/index.js",
10
10
  "dependencies": {
11
- "jest-mock": "^18.0.0",
12
- "jest-util": "^18.0.0",
13
- "jsdom": "^9.8.1"
11
+ "jest-mock": "^19.0.0",
12
+ "jest-util": "^19.0.1",
13
+ "jsdom": "^9.11.0"
14
14
  }
15
15
  }