-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
66 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/jest/setup.js b/jest/setup.js | ||
index 5bc65447594091c2da6dadb4be6bc1c6da43c7a0..356e7ff3eb55947e084db5d1df9b2d9f0544a15b 100644 | ||
--- a/jest/setup.js | ||
+++ b/jest/setup.js | ||
@@ -17,13 +17,8 @@ jest.requireActual('@react-native/polyfills/error-guard'); | ||
|
||
global.__DEV__ = true; | ||
|
||
-global.performance = { | ||
- now: jest.fn(Date.now), | ||
-}; | ||
- | ||
global.Promise = jest.requireActual('promise'); | ||
global.regeneratorRuntime = jest.requireActual('regenerator-runtime/runtime'); | ||
-global.window = global; | ||
|
||
global.requestAnimationFrame = function (callback) { | ||
return setTimeout(callback, 0); |
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
"jest-environment-node": "workspace:*"