|
6 | 6 | "packages/*",
|
7 | 7 | "sample",
|
8 | 8 | "docs-validation"
|
9 |
| - ], |
10 |
| - "nohoist": [ |
11 |
| - "**/react", |
12 |
| - "**/react-dom", |
13 |
| - "**/react-native", |
14 |
| - "**/react-native/**", |
15 |
| - "**/react-native-dev-menu", |
16 |
| - "**/react-native-codegen", |
17 |
| - "**/@react-native-firebase/**" |
18 | 9 | ]
|
19 | 10 | },
|
20 | 11 | "scripts": {
|
|
46 | 37 | "make:feat": "yarn workspace @sendbird/uikit-react-native create-domain"
|
47 | 38 | },
|
48 | 39 | "devDependencies": {
|
49 |
| - "@testing-library/react-native": "^9.0.0", |
| 40 | + "@testing-library/react-native": "11", |
50 | 41 | "@trivago/prettier-plugin-sort-imports": "^3.4.0",
|
51 |
| - "@types/jest": "^27.4.0", |
| 42 | + "@types/jest": "^29.4.0", |
52 | 43 | "@typescript-eslint/eslint-plugin": "^5.9.1",
|
53 | 44 | "@typescript-eslint/parser": "^5.9.1",
|
54 |
| - "babel-jest": "^27.4.6", |
| 45 | + "babel-jest": "^29.4.3", |
55 | 46 | "chalk": "^4",
|
56 | 47 | "conventional-changelog-conventionalcommits": "^5.0.0",
|
57 | 48 | "del-cli": "^4.0.1",
|
58 | 49 | "eslint": "^8.6.0",
|
59 | 50 | "eslint-config-prettier": "^8.5.0",
|
60 |
| - "jest": "^27.4.7", |
| 51 | + "jest": "^29.4.3", |
61 | 52 | "lerna": "^5.1.6",
|
62 | 53 | "patch-package": "^6.4.7",
|
63 | 54 | "postinstall-postinstall": "^2.1.0",
|
|
72 | 63 | "typescript": "4.9.4"
|
73 | 64 | },
|
74 | 65 | "jest": {
|
75 |
| - "testEnvironment": "node", |
| 66 | + "preset": "react-native", |
76 | 67 | "moduleFileExtensions": [
|
77 | 68 | "ts",
|
78 | 69 | "tsx",
|
79 | 70 | "js",
|
80 | 71 | "jsx",
|
81 | 72 | "json"
|
82 | 73 | ],
|
| 74 | + "setupFiles": [ |
| 75 | + "<rootDir>/node_modules/react-native/jest/setup.js", |
| 76 | + "<rootDir>/jest.setup.js" |
| 77 | + ], |
| 78 | + "testRegex": "/__tests__/.*\\.(test|spec)\\.(js|tsx?)$", |
| 79 | + "transformIgnorePatterns": [ |
| 80 | + "node_modules/(?!(jest-)?@?react-native|@testing-library|@react-navigation|@sendbird/chat)" |
| 81 | + ], |
83 | 82 | "testPathIgnorePatterns": [
|
84 | 83 | "/node_modules/"
|
85 | 84 | ],
|
86 |
| - "testRegex": "/__tests__/.*\\.(test|spec)\\.(js|tsx?)$", |
87 | 85 | "moduleNameMapper": {
|
88 |
| - "@sendbird/([^/]+)": "<rootDir>/packages/$1/src" |
| 86 | + "@sendbird/chat-hooks": "<rootDir>/packages/chat-hooks/src", |
| 87 | + "@sendbird/uikit-([^/]+)": "<rootDir>/packages/uikit-$1/src" |
89 | 88 | },
|
90 |
| - "preset": "react-native" |
| 89 | + "coverageReporters": [ |
| 90 | + "json-summary" |
| 91 | + ] |
91 | 92 | }
|
92 | 93 | }
|
0 commit comments