-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite jest unit tests to TypeScript (#4399)
## Summary - Renamed all tests with their respective TypeScript counterparts. - Fixed jestUtils to properly allow strict checking of AnimatedStyle. - Added type declaration emitting to plugin. - Moved building plugin files before running TypeScript on the project (otherwise TypeScript tests would fail during type-checking). - Added test for jestUtils. - Bumped `jest` version and added `@types/react-test-renderer`. --- Added to `jest-setup.js`: ```diff + delete global.MessageChannel; ``` This line is coming from `react-16-node-hanging-test-fix`. It fixes an error of open handles in `@testing-library/react-native` function `render` and jest going 😵. [Reference](facebook/react#20756). ## Test plan `yarn && yarn jest --detectOpenHandles` ftw
- Loading branch information
Showing
15 changed files
with
832 additions
and
1,095 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,3 +57,4 @@ react-native-reanimated-tests.js | |
|
||
# plugin | ||
!plugin/build | ||
plugin/types |
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
File renamed without changes.
Oops, something went wrong.