You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,13 @@ React Native CodePush is a native module that enables over-the-air updates for R
7
7
## Development Commands
8
8
9
9
### Testing
10
-
-`npm test` - Run all tests with TypeScript compilation
10
+
11
+
#### Unit tests
12
+
13
+
-`cd android && ./gradlew :app:test`
14
+
- iOS: no unit tests yet.
15
+
16
+
#### E2E Tests
11
17
-`npm run test:android` - Run Android-specific tests
12
18
-`npm run test:ios` - Run iOS-specific tests
13
19
-`npm run test:setup-android` - Set up Android emulator for testing
@@ -34,7 +40,7 @@ React Native CodePush is a native module that enables over-the-air updates for R
34
40
35
41
### Platform Structure
36
42
-**iOS**: `ios/` - Objective-C implementation with CocoaPods integration
37
-
-**Android**: `android/` - Java implementation with Gradle plugin
43
+
-**Android**: `android/` - Java/Kotlin implementation with Gradle plugin
38
44
-**Windows**: `windows/` - C++ implementation for Windows React Native
39
45
-**JavaScript**: Root level - TypeScript definitions and bridge code
40
46
@@ -48,7 +54,7 @@ React Native CodePush is a native module that enables over-the-air updates for R
48
54
-**Custom Test Runner**: TypeScript-based test framework in `test/`
49
55
-**Real App Testing**: Creates actual React Native apps for integration testing
50
56
-**Scenario Testing**: Update, rollback, and error scenarios
51
-
-**No unit test infra yet**: this repo only has the mocha-based integration suite above. `src/acquisition-sdk/__tests__/` contains tests ported from upstream `microsoft/code-push`, kept for future reference - they are deliberately not wired into `npm test` or any runner. Don't assume they're dead/forgotten code, and don't wire them in without setting up real unit test infra first.
57
+
-**No unit test infra for JS/iOS yet**: JS/iOS only have the mocha-based integration suite above. `src/acquisition-sdk/__tests__/` contains tests ported from upstream `microsoft/code-push`, kept for future reference - they are deliberately not wired into `npm test` or any runner. Don't assume they're dead/forgotten code, and don't wire them in without setting up real unit test infra first.
52
58
-**Templates**: `test/template/` holds native files (Podfile, AppDelegate, Android app files) and JS scenarios copied over top of a freshly generated RN/Expo app during test setup, overwriting its defaults — edit files here, not the generated project, for changes to persist
53
59
-**`test:ios` vs `test:setup:ios` vs `test:fast:ios`**: `test:ios` is just `test:setup:ios` followed by `test:fast:ios` — the two are meant to be split apart for local iteration.
54
60
-`test:setup:ios` (mocha `--ios --setup`) boots the simulator and provisions the test app once: copies templates, runs `pod install`, patches Info.plist/AppDelegate. It never builds or runs any test scenario.
0 commit comments