-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-introduce app.tsx test file and react-test-renderer
(were forgotten in a previous commit)
- Loading branch information
1 parent
5ccbf20
commit 6de2907
Showing
3 changed files
with
41 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @format | ||
*/ | ||
|
||
import 'react-native'; | ||
import App from '../App'; | ||
|
||
// Note: test renderer must be required after react-native. | ||
import renderer from 'react-test-renderer'; | ||
|
||
it('renders correctly', () => { | ||
renderer.create(<App />); | ||
}); |
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 |
---|---|---|
|
@@ -14,14 +14,16 @@ | |
"@expo/metro-runtime": "~3.1.1", | ||
"@react-navigation/native": "^6.1.9", | ||
"@react-navigation/native-stack": "^6.9.17", | ||
"@types/react-test-renderer": "^18.0.7", | ||
"expo": "~50.0.3", | ||
"expo-status-bar": "~1.11.1", | ||
"react": "18.2.0", | ||
"react-native": "npm:[email protected]", | ||
"react-native-keyevent": "^0.3.2", | ||
"react-native-keyevent-expo-config-plugin": "^1.0.49", | ||
"react-native-safe-area-context": "^4.8.2", | ||
"react-native-screens": "^3.29.0" | ||
"react-native-screens": "^3.29.0", | ||
"react-test-renderer": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.20.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