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: packages/capacitor/DEVELOP.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ cd ..
16
16
17
17
The test provider reads these environment variables:
18
18
19
-
-`TEST_PLATFORM`: Native platform to run. Use `ios` or `android`. Defaults to `ios`.
19
+
-`TEST_PLATFORM`: Native platform to run. Use `ios` or `android`.
20
20
-`TEST_TARGET`: Simulator/emulator target id passed to `cap run --target`.
21
21
-`TEST_SERVER_HOST`: Hostname the native app should use to reach the Vitest server. Android defaults to `10.0.2.2`; iOS uses the Vitest URL host as-is.
22
22
@@ -61,8 +61,7 @@ Run the integration tests on Android:
61
61
cd packages/capacitor
62
62
TEST_PLATFORM=android \
63
63
TEST_TARGET=emulator-5554 \
64
-
TEST_SERVER_HOST=10.0.2.2 \
65
64
pnpm exec vitest run --config vitest.config.ts
66
65
```
67
66
68
-
`TEST_SERVER_HOST=10.0.2.2`lets the Android emulator reach the host machine without `adb reverse`. The Vitest config also binds the test server to `0.0.0.0` for this reason.
67
+
Android defaults `TEST_SERVER_HOST` to `10.0.2.2`, which lets the emulator reach the host machine without `adb reverse`. The Vitest config also binds the test server to `0.0.0.0` for this reason.
0 commit comments