jest-environment-jsdom 25.2.1-alpha.1 → 25.2.4
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 +1 -0
- package/build/index.d.ts.map +1 -0
- package/build/ts3.4/index.d.ts +1 -0
- package/package.json +9 -9
- package/build/ts3.4/ts3.4/index.d.ts +0 -34
package/build/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EACL,cAAc,IAAI,gBAAgB,EAClC,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAC,KAAK,EAAiB,MAAM,OAAO,CAAC;AAI5C,aAAK,GAAG,GAAG,MAAM,GACf,MAAM,CAAC,MAAM,GAAG;IACd,KAAK,EAAE;QACL,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH,CAAC;AAEJ,cAAM,gBAAiB,YAAW,eAAe;IAC/C,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC;IAClB,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC5C,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,GAAG;QAAC,KAAK,EAAE,KAAK,CAAA;KAAC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IACrE,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;gBAEtB,MAAM,EAAE,MAAM,CAAC,aAAa,EAAE,OAAO,GAAE,kBAAuB;IAkEpE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAuB/B,SAAS,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;CAMjD;AAED,SAAS,gBAAgB,CAAC"}
|
package/build/ts3.4/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jest-environment-jsdom",
|
|
3
|
-
"version": "25.2.
|
|
3
|
+
"version": "25.2.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/facebook/jest.git",
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"types": "build/index.d.ts",
|
|
12
12
|
"typesVersions": {
|
|
13
13
|
"<3.8": {
|
|
14
|
-
"
|
|
15
|
-
"ts3.4/*"
|
|
14
|
+
"build/*": [
|
|
15
|
+
"build/ts3.4/*"
|
|
16
16
|
]
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@jest/environment": "^25.2.
|
|
21
|
-
"@jest/fake-timers": "^25.2.
|
|
22
|
-
"@jest/types": "^25.2.
|
|
23
|
-
"jest-mock": "^25.2.
|
|
24
|
-
"jest-util": "^25.2.
|
|
20
|
+
"@jest/environment": "^25.2.4",
|
|
21
|
+
"@jest/fake-timers": "^25.2.4",
|
|
22
|
+
"@jest/types": "^25.2.3",
|
|
23
|
+
"jest-mock": "^25.2.3",
|
|
24
|
+
"jest-util": "^25.2.3",
|
|
25
25
|
"jsdom": "^15.2.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "324938561c608e0e9dddc008e5dde1589d7abc68"
|
|
37
37
|
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/**
|
|
3
|
-
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
/// <reference types="node" />
|
|
9
|
-
import { Script } from 'vm';
|
|
10
|
-
import { Config, Global } from '@jest/types';
|
|
11
|
-
import { ModuleMocker } from 'jest-mock';
|
|
12
|
-
import { JestFakeTimers as LegacyFakeTimers, LolexFakeTimers } from '@jest/fake-timers';
|
|
13
|
-
import { EnvironmentContext, JestEnvironment } from '@jest/environment';
|
|
14
|
-
import { JSDOM } from 'jsdom';
|
|
15
|
-
declare type Win = Window & Global.Global & {
|
|
16
|
-
Error: {
|
|
17
|
-
stackTraceLimit: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
declare class JSDOMEnvironment implements JestEnvironment {
|
|
21
|
-
dom: JSDOM | null;
|
|
22
|
-
fakeTimers: LegacyFakeTimers<number> | null;
|
|
23
|
-
fakeTimersLolex: LolexFakeTimers | null;
|
|
24
|
-
global: Win;
|
|
25
|
-
errorEventListener: ((event: Event & {
|
|
26
|
-
error: Error;
|
|
27
|
-
}) => void) | null;
|
|
28
|
-
moduleMocker: ModuleMocker | null;
|
|
29
|
-
constructor(config: Config.ProjectConfig, options?: EnvironmentContext);
|
|
30
|
-
setup(): Promise<void>;
|
|
31
|
-
teardown(): Promise<void>;
|
|
32
|
-
runScript<T = unknown>(script: Script): T | null;
|
|
33
|
-
}
|
|
34
|
-
export = JSDOMEnvironment;
|