This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patch package based on jestjs/jest#9983 (comment)
- Loading branch information
1 parent
9a3db41
commit 488f227
Showing
4 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/node_modules/jest-environment-jsdom/build/index.js b/node_modules/jest-environment-jsdom/build/index.js | ||
index 6695225..ae7e9e6 100644 | ||
--- a/node_modules/jest-environment-jsdom/build/index.js | ||
+++ b/node_modules/jest-environment-jsdom/build/index.js | ||
@@ -97,6 +97,7 @@ class JSDOMEnvironment { | ||
(0, _jestUtil().installCommonGlobals)(global, config.globals); // TODO: remove this ASAP, but it currently causes tests to run really slow | ||
|
||
global.Buffer = Buffer; // Report uncaught errors. | ||
+ global.Uint8Array = Uint8Array; | ||
|
||
this.errorEventListener = event => { | ||
if (userErrorListenerCount === 0 && event.error) { |