Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,44 @@ jobs:
- name: Run tests
run: npm run test:workerd

testReactNativeAndroid:
name: 'Test: React Native (Android)'
timeout-minutes: 45
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- name: Install dependencies
run: npm ci
# TEMPORARY: the pool build that reports errors thrown while a module loads.
- name: Install the pool from the fix branch
run: |
git clone --depth 1 --branch fix/report-module-load-errors https://github.com/rexxars/vitest-pool-react-native "$RUNNER_TEMP/pool"
(cd "$RUNNER_TEMP/pool" && npm ci && npm pack --pack-destination "$RUNNER_TEMP")
npm install --no-save "$RUNNER_TEMP"/vitest-pool-react-native-*.tgz
# Not expected to pass, see `vitest.react-native.config.ts`.
- uses: rexxars/vitest-pool-react-native/android@main
with:
config: vitest.react-native.config.ts

testReactNative:
name: 'Test: React Native (iOS)'
timeout-minutes: 45
runs-on: macos-15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: 24
- name: Install dependencies
run: npm ci
# Not expected to pass, see `vitest.react-native.config.ts`.
- uses: rexxars/vitest-pool-react-native/ios@main
with:
config: vitest.react-native.config.ts

testIos:
if: github.event_name == 'workflow_dispatch' && inputs.run_ios
name: 'Test: iOS Simulator'
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The suite in `test/client.test.ts` runs against a real HTTP server in every supp
- `npm test` - Node.js
- `npm run test:browser` - Chromium, Firefox and WebKit, via Playwright
- `npm run test:ios` - Safari on an iOS simulator (macOS with Xcode only)
- `npm run test:react-native` - React Native (Hermes) on an iOS simulator, via `vitest-pool-react-native` (macOS with Xcode only). Known to fail, see `vitest.react-native.config.ts`
- `npm run test:bun` - Bun
- `npm run test:deno` - Deno
- `npm run test:happy-dom` - happy-dom
Expand Down
Loading
Loading