|
27 | 27 | "!**/__mocks__" |
28 | 28 | ], |
29 | 29 | "scripts": { |
| 30 | + "test": "jest", |
30 | 31 | "lint": "eslint \"**/*.{js,ts,tsx}\"", |
31 | 32 | "prepare": "bob build", |
32 | 33 | "example": "yarn --cwd example", |
|
58 | 59 | "devDependencies": { |
59 | 60 | "@react-native-community/eslint-config": "^2.0.0", |
60 | 61 | "@tsconfig/react-native": "^2.0.2", |
| 62 | + "@types/jest": "^26.0.0", |
61 | 63 | "@types/react": "^18.0.21", |
62 | 64 | "@types/react-native": "^0.70.6", |
| 65 | + "@types/react-test-renderer": "^18.0.0", |
63 | 66 | "@typescript-eslint/eslint-plugin": "^5.37.0", |
64 | 67 | "@typescript-eslint/parser": "^5.37.0", |
| 68 | + "babel-jest": "^26.6.3", |
65 | 69 | "eslint": "^7.32.0", |
| 70 | + "jest": "^26.6.3", |
| 71 | + "metro-react-native-babel-preset": "0.72.3", |
| 72 | + "pod-install": "^0.1.0", |
66 | 73 | "react": "18.1.0", |
67 | 74 | "react-native": "0.70.4", |
68 | 75 | "react-native-builder-bob": "^0.18.0", |
69 | | - "metro-react-native-babel-preset": "0.72.3", |
70 | | - "typescript": "^4.1.3", |
71 | | - "pod-install": "^0.1.0" |
| 76 | + "react-test-renderer": "18.1.0", |
| 77 | + "typescript": "^4.1.3" |
| 78 | + }, |
| 79 | + "jest": { |
| 80 | + "preset": "react-native", |
| 81 | + "modulePathIgnorePatterns": [ |
| 82 | + "<rootDir>/src/__tests__/Setup", |
| 83 | + "<rootDir>/example/", |
| 84 | + "<rootDir>/lib/" |
| 85 | + ], |
| 86 | + "setupFiles": [ |
| 87 | + "<rootDir>/src/__tests__/Setup.tsx" |
| 88 | + ] |
72 | 89 | }, |
73 | 90 | "react-native-builder-bob": { |
74 | 91 | "source": "src", |
|
0 commit comments