|
6 | 6 | "ios": "expo start --ios", |
7 | 7 | "web": "expo start --web", |
8 | 8 | "eject": "expo eject", |
9 | | - "lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx ." |
| 9 | + "lint": "eslint --ignore-path .gitignore --ext .js,.ts,.tsx .", |
| 10 | + "test": "jest", |
| 11 | + "test:unit:watch": "jest --watch" |
| 12 | + }, |
| 13 | + "jest": { |
| 14 | + "preset": "jest-expo", |
| 15 | + "setupFiles": [ |
| 16 | + "<rootDir>/jest.setup.js" |
| 17 | + ] |
10 | 18 | }, |
11 | 19 | "dependencies": { |
12 | 20 | "@expo/vector-icons": "^12.0.0", |
13 | 21 | "@react-native-community/masked-view": "0.1.10", |
14 | 22 | "@react-navigation/material-bottom-tabs": "^6.0.9", |
15 | 23 | "@react-navigation/native": "^6.0.6", |
16 | 24 | "@react-navigation/stack": "^6.0.11", |
| 25 | + "@testing-library/jest-native": "^4.0.4", |
| 26 | + "@types/jest": "^27.4.0", |
| 27 | + "babel-core": "^7.0.0-bridge.0", |
| 28 | + "babel-jest": "^27.4.6", |
17 | 29 | "expo": "^44.0.0", |
18 | 30 | "expo-status-bar": "~1.2.0", |
| 31 | + "jest": "26", |
| 32 | + "jest-expo": "^44.0.1", |
19 | 33 | "react": "17.0.1", |
20 | 34 | "react-dom": "17.0.1", |
21 | 35 | "react-native": "0.64.3", |
|
30 | 44 | }, |
31 | 45 | "devDependencies": { |
32 | 46 | "@babel/core": "^7.12.9", |
| 47 | + "@babel/preset-typescript": "^7.16.7", |
| 48 | + "@testing-library/react-native": "^9.0.0", |
33 | 49 | "@types/react": "~17.0.21", |
34 | 50 | "@types/react-dom": "~17.0.9", |
35 | 51 | "@types/react-native": "~0.64.12", |
|
0 commit comments