@jupyterlab/testing 4.4.3 → 4.4.5

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/lib/jest-env.js CHANGED
@@ -18,6 +18,8 @@ class FixJSDOMEnvironment extends jest_environment_jsdom_1.default {
18
18
  this.global.Headers = Headers;
19
19
  this.global.Request = Request;
20
20
  this.global.Response = Response;
21
+ // While jsdom has it's own File, it clashes with instance checks in fetch, so we use one from Node.js
22
+ this.global.File = File;
21
23
  }
22
24
  }
23
25
  exports.default = FixJSDOMEnvironment;
@@ -1 +1 @@
1
- {"version":3,"file":"jest-env.js","sourceRoot":"","sources":["../src/jest-env.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAEH,2EAA2E;AAE3E,oFAAsD;AAEtD,4HAA4H;AAC5H,MAAqB,mBAAoB,SAAQ,gCAAgB;IAC/D,YAAY,GAAG,IAAoD;QACjE,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,mDAAmD;QACnD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAClC,CAAC;CACF;AAVD,sCAUC"}
1
+ {"version":3,"file":"jest-env.js","sourceRoot":"","sources":["../src/jest-env.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;AAEH,2EAA2E;AAE3E,oFAAsD;AAEtD,4HAA4H;AAC5H,MAAqB,mBAAoB,SAAQ,gCAAgB;IAC/D,YAAY,GAAG,IAAoD;QACjE,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QAEf,mDAAmD;QACnD,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAChC,sGAAsG;QACtG,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;IAC1B,CAAC;CACF;AAZD,sCAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyterlab/testing",
3
- "version": "4.4.3",
3
+ "version": "4.4.5",
4
4
  "description": "JupyterLab basic testing utilities.",
5
5
  "homepage": "https://github.com/jupyterlab/jupyterlab",
6
6
  "bugs": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@babel/core": "^7.10.2",
37
37
  "@babel/preset-env": "^7.10.2",
38
- "@jupyterlab/coreutils": "^6.4.3",
38
+ "@jupyterlab/coreutils": "^6.4.5",
39
39
  "@lumino/coreutils": "^2.2.1",
40
40
  "@lumino/signaling": "^2.1.4",
41
41
  "deepmerge": "^4.2.2",
package/src/jest-env.ts CHANGED
@@ -17,5 +17,7 @@ export default class FixJSDOMEnvironment extends JSDOMEnvironment {
17
17
  this.global.Headers = Headers;
18
18
  this.global.Request = Request;
19
19
  this.global.Response = Response;
20
+ // While jsdom has it's own File, it clashes with instance checks in fetch, so we use one from Node.js
21
+ this.global.File = File;
20
22
  }
21
23
  }