-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #657 from gympass/CODEME-1040
[CODEME-1113] support for react-native 0.72.x projects 💣
- Loading branch information
Showing
105 changed files
with
11,705 additions
and
8,673 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
import '@testing-library/jest-native/extend-expect'; | ||
|
||
const frameTime = 10; | ||
|
||
/** | ||
* This fix came to help with the RN's jest setup requestAnimationFrame issue that | ||
* was affecting native's components tests that relate with animations. | ||
* At the link below we can find more detailed description. | ||
* * https://stackoverflow.com/questions/42268673/jest-test-animated-view-for-react-native-app/51067606#51067606 | ||
*/ | ||
global.requestAnimationFrame = cb => { | ||
setTimeout(cb, frameTime); | ||
}; | ||
|
||
/** | ||
* This fix was originally proposed by the package react-16-node-hanging-test-fix | ||
* (https://npmjs.com/package/react-16-node-hanging-test-fix). Actually, the problem | ||
* this fix solves was not supposed to be hapenning since it was first observed in | ||
* previous versions of packages we use here (jest, node, react, etc.). However, | ||
* it seems to be back in latest version as we can see in issues like the one below. | ||
* The link of the original issue describing the problem follows too. | ||
* * https://github.com/callstack/react-native-testing-library/issues/1054#issuecomment-1575660634 | ||
* * https://github.com/facebook/react/issues/20756#issuecomment-780927519 | ||
* * https://github.com/callstack/react-native-testing-library/issues/1007 | ||
*/ | ||
delete global.MessageChannel; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
{} | ||
{} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source 'https://rubygems.org' | ||
|
||
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version | ||
ruby '2.7.4' | ||
ruby ">= 2.6.10" | ||
|
||
gem 'cocoapods', '~> 1.11', '>= 1.11.2' | ||
gem 'cocoapods', '~> 1.12' |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.