jest-environment-jsdom 26.5.0 → 26.6.2
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.
- package/build/index.d.ts +3 -3
- package/build/index.js +12 -12
- package/package.json +8 -7
package/build/index.d.ts
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="node" />
|
|
8
8
|
import type { Context, Script } from 'vm';
|
|
9
|
+
import { JSDOM } from 'jsdom';
|
|
10
|
+
import type { EnvironmentContext, JestEnvironment } from '@jest/environment';
|
|
11
|
+
import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
|
|
9
12
|
import type { Config, Global } from '@jest/types';
|
|
10
13
|
import { ModuleMocker } from 'jest-mock';
|
|
11
|
-
import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
|
|
12
|
-
import type { EnvironmentContext, JestEnvironment } from '@jest/environment';
|
|
13
|
-
import { JSDOM } from 'jsdom';
|
|
14
14
|
declare type Win = Window & Global.Global & {
|
|
15
15
|
Error: {
|
|
16
16
|
stackTraceLimit: number;
|
package/build/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
const data = require('
|
|
3
|
+
function _jsdom() {
|
|
4
|
+
const data = require('jsdom');
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
_jsdom = function () {
|
|
7
7
|
return data;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
return data;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
function
|
|
14
|
-
const data = require('jest-
|
|
13
|
+
function _fakeTimers() {
|
|
14
|
+
const data = require('@jest/fake-timers');
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
_fakeTimers = function () {
|
|
17
17
|
return data;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
return data;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
function
|
|
24
|
-
const data = require('
|
|
23
|
+
function _jestMock() {
|
|
24
|
+
const data = require('jest-mock');
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
_jestMock = function () {
|
|
27
27
|
return data;
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
return data;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
function
|
|
34
|
-
const data = require('
|
|
33
|
+
function _jestUtil() {
|
|
34
|
+
const data = require('jest-util');
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
_jestUtil = function () {
|
|
37
37
|
return data;
|
|
38
38
|
};
|
|
39
39
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-environment-jsdom",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.6.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/facebook/jest.git",
|
|
@@ -10,15 +10,16 @@
|
|
|
10
10
|
"main": "build/index.js",
|
|
11
11
|
"types": "build/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@jest/environment": "^26.
|
|
14
|
-
"@jest/fake-timers": "^26.
|
|
15
|
-
"@jest/types": "^26.
|
|
13
|
+
"@jest/environment": "^26.6.2",
|
|
14
|
+
"@jest/fake-timers": "^26.6.2",
|
|
15
|
+
"@jest/types": "^26.6.2",
|
|
16
16
|
"@types/node": "*",
|
|
17
|
-
"jest-mock": "^26.
|
|
18
|
-
"jest-util": "^26.
|
|
17
|
+
"jest-mock": "^26.6.2",
|
|
18
|
+
"jest-util": "^26.6.2",
|
|
19
19
|
"jsdom": "^16.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
+
"@jest/test-utils": "^26.6.2",
|
|
22
23
|
"@types/jsdom": "^16.2.4"
|
|
23
24
|
},
|
|
24
25
|
"engines": {
|
|
@@ -27,5 +28,5 @@
|
|
|
27
28
|
"publishConfig": {
|
|
28
29
|
"access": "public"
|
|
29
30
|
},
|
|
30
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "4c46930615602cbf983fb7e8e82884c282a624d5"
|
|
31
32
|
}
|