Skip to content

Commit 90a6169

Browse files
chore: update Jest Native integration example (#1412)
1 parent ded5c36 commit 90a6169

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed
File renamed without changes.

examples/basic/jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
preset: '@testing-library/react-native',
33
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
4-
setupFilesAfterEnv: ['./jest-setup.js'],
4+
setupFilesAfterEnv: ['./jest-setup.ts'],
55
};

examples/basic/package.json

+12-13
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,21 @@
1010
"typecheck": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"expo": "^47.0.0",
14-
"expo-status-bar": "~1.4.2",
15-
"react": "18.1.0",
16-
"react-dom": "18.1.0",
17-
"react-native": "0.70.5",
18-
"react-native-web": "~0.18.7"
13+
"expo": "^48.0.0",
14+
"expo-status-bar": "~1.4.4",
15+
"react": "18.2.0",
16+
"react-dom": "18.2.0",
17+
"react-native": "0.71.3",
18+
"react-native-web": "~0.18.11"
1919
},
2020
"devDependencies": {
21-
"@babel/core": "^7.19.3",
22-
"@testing-library/jest-native": "^5.4.0",
23-
"@testing-library/react-native": "^11.4.0",
24-
"@types/react": "~18.0.24",
25-
"@types/react-native": "~0.70.6",
21+
"@babel/core": "^7.20.0",
22+
"@testing-library/jest-native": "^5.4.2",
23+
"@testing-library/react-native": "^12.1.2",
24+
"@types/react": "~18.2.6",
2625
"jest": "^29.3.0",
27-
"react-test-renderer": "18.1.0",
28-
"typescript": "^4.8.4"
26+
"react-test-renderer": "18.2.0",
27+
"typescript": "^5.0.4"
2928
},
3029
"private": true
3130
}

examples/basic/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "expo/tsconfig.base",
33
"compilerOptions": {
4-
"strict": true
4+
"strict": true,
5+
"allowJs": false
56
}
67
}

0 commit comments

Comments
 (0)