jest-environment-jsdom 27.4.2 → 27.5.0

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.d.ts +2 -5
  2. package/package.json +9 -9
package/build/index.d.ts CHANGED
@@ -6,7 +6,6 @@
6
6
  */
7
7
  /// <reference types="node" />
8
8
  import type { Context } from 'vm';
9
- import { JSDOM } from 'jsdom';
10
9
  import type { EnvironmentContext, JestEnvironment } from '@jest/environment';
11
10
  import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
12
11
  import type { Config, Global } from '@jest/types';
@@ -17,13 +16,11 @@ declare type Win = Window & Global.Global & {
17
16
  };
18
17
  };
19
18
  declare class JSDOMEnvironment implements JestEnvironment<number> {
20
- dom: JSDOM | null;
19
+ private dom;
21
20
  fakeTimers: LegacyFakeTimers<number> | null;
22
21
  fakeTimersModern: ModernFakeTimers | null;
23
22
  global: Win;
24
- errorEventListener: ((event: Event & {
25
- error: Error;
26
- }) => void) | null;
23
+ private errorEventListener;
27
24
  moduleMocker: ModuleMocker | null;
28
25
  constructor(config: Config.ProjectConfig, options?: EnvironmentContext);
29
26
  setup(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jest-environment-jsdom",
3
- "version": "27.4.2",
3
+ "version": "27.5.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/facebook/jest.git",
@@ -17,17 +17,17 @@
17
17
  "./package.json": "./package.json"
18
18
  },
19
19
  "dependencies": {
20
- "@jest/environment": "^27.4.2",
21
- "@jest/fake-timers": "^27.4.2",
22
- "@jest/types": "^27.4.2",
23
- "@types/jsdom": "^16.2.4",
20
+ "@jest/environment": "^27.5.0",
21
+ "@jest/fake-timers": "^27.5.0",
22
+ "@jest/types": "^27.5.0",
24
23
  "@types/node": "*",
25
- "jest-mock": "^27.4.2",
26
- "jest-util": "^27.4.2",
24
+ "jest-mock": "^27.5.0",
25
+ "jest-util": "^27.5.0",
27
26
  "jsdom": "^16.6.0"
28
27
  },
29
28
  "devDependencies": {
30
- "@jest/test-utils": "^27.4.2"
29
+ "@jest/test-utils": "^27.5.0",
30
+ "@types/jsdom": "^16.2.4"
31
31
  },
32
32
  "engines": {
33
33
  "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "7965591f785e936ada194f9d58f852735b50ab1c"
38
+ "gitHead": "247cbe6026a590deaf0d23edecc7b2779a4aace9"
39
39
  }