mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
fix: use actual react-native instead of homegrown mocks (#36)
<!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary This actually uncovered some bugs, like lack of `onDoublePress` (lol XD) and enabled us to have better snapshots for deep rendering. ### Test plan no new tests
This commit is contained in:
committed by
GitHub
parent
07d3be1c51
commit
03e2c4b0f2
+6
-2
@@ -21,8 +21,9 @@
|
||||
"jest": "^23.6.0",
|
||||
"metro-react-native-babel-preset": "^0.48.0",
|
||||
"pretty-format": "^23.6.0",
|
||||
"react": "^16.5.2",
|
||||
"react-test-renderer": "^16.5.2",
|
||||
"react": "16.6.0-alpha.8af6728",
|
||||
"react-native": "^0.57.3",
|
||||
"react-test-renderer": "16.6.0-alpha.8af6728",
|
||||
"typescript": "^3.1.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
@@ -35,5 +36,8 @@
|
||||
"flow-check": "flow check",
|
||||
"typescript-check": "tsc --noEmit --skipLibCheck --jsx react ./typings/__tests__/*",
|
||||
"lint": "eslint src --cache"
|
||||
},
|
||||
"jest": {
|
||||
"preset": "react-native"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user