Skip to content

Commit

Permalink
re-introduce app.tsx test file and react-test-renderer
Browse files Browse the repository at this point in the history
(were forgotten in a previous commit)
  • Loading branch information
thomasrebam committed Jan 24, 2024
1 parent 5ccbf20 commit 6de2907
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
13 changes: 13 additions & 0 deletions packages/hoppixTv/__tests__/App-test.tsx
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 />);
});
4 changes: 3 additions & 1 deletion packages/hoppixTv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
26 changes: 25 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5179,6 +5179,15 @@ __metadata:
languageName: node
linkType: hard

"@types/react-test-renderer@npm:^18.0.7":
version: 18.0.7
resolution: "@types/react-test-renderer@npm:18.0.7"
dependencies:
"@types/react": "*"
checksum: 701d7d815fe7b921712ebdb2c4434e99b92403d37c51b33a01ce1b62fed7d1efbf9f749971d9031a5b137c6d5e194249c378106768aa69725a01f150fef0ec7f
languageName: node
linkType: hard

"@types/react@npm:*, @types/react@npm:^18.2.14":
version: 18.2.14
resolution: "@types/react@npm:18.2.14"
Expand Down Expand Up @@ -10043,6 +10052,7 @@ __metadata:
"@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
Expand All @@ -10051,6 +10061,7 @@ __metadata:
react-native-keyevent-expo-config-plugin: ^1.0.49
react-native-safe-area-context: ^4.8.2
react-native-screens: ^3.29.0
react-test-renderer: ^18.2.0
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -14178,7 +14189,7 @@ __metadata:
languageName: node
linkType: hard

"react-is@npm:^16.12.0 || ^17.0.0 || ^18.0.0, react-is@npm:^18.0.0":
"react-is@npm:^16.12.0 || ^17.0.0 || ^18.0.0, react-is@npm:^18.0.0, react-is@npm:^18.2.0":
version: 18.2.0
resolution: "react-is@npm:18.2.0"
checksum: e72d0ba81b5922759e4aff17e0252bd29988f9642ed817f56b25a3e217e13eea8a7f2322af99a06edb779da12d5d636e9fda473d620df9a3da0df2a74141d53e
Expand Down Expand Up @@ -14336,6 +14347,19 @@ __metadata:
languageName: node
linkType: hard

"react-test-renderer@npm:^18.2.0":
version: 18.2.0
resolution: "react-test-renderer@npm:18.2.0"
dependencies:
react-is: ^18.2.0
react-shallow-renderer: ^16.15.0
scheduler: ^0.23.0
peerDependencies:
react: ^18.2.0
checksum: 6b6980ced93fa2b72662d5e4ab3b4896833586940047ce52ca9aca801e5432adf05fcbe28289b0af3ce6a2a7c590974e25dcc8aa43d0de658bfe8bbcd686f958
languageName: node
linkType: hard

"react-tv-space-navigation-monorepo@workspace:.":
version: 0.0.0-use.local
resolution: "react-tv-space-navigation-monorepo@workspace:."
Expand Down

0 comments on commit 6de2907

Please sign in to comment.