Skip to content

Commit

Permalink
chore: return express dev dependency for RN E2E tests (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
testableapple authored Sep 19, 2023
1 parent 854284c commit de6c89e
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .github/actions/rn-bootstrap/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ runs:
run: npm install -g "https://github.com/GetStream/stream-video-buddy#1.6.9"
shell: bash

# Required to emulate the participants during E2E testing
- name: Install Chromium
if: ${{ env.INSTALL_VIDEO_BUDDY == 'true' }}
run: cd && npx playwright install
shell: bash

# Required to capture Android video during E2E testing
- name: Install FFmpeg
if: ${{ env.INSTALL_FFMPEG == 'true' }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/react-native-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ jobs:
test_ios:
name: Test iOS
needs: build_ios
if: ${{ false }} # temporarily disabled
timeout-minutes: 100
runs-on: macos-latest
steps:
Expand Down Expand Up @@ -172,7 +171,6 @@ jobs:
test_android:
name: Test Android
needs: build_android
if: ${{ false }} # temporarily disabled
timeout-minutes: 100
runs-on: macos-latest
steps:
Expand Down
2 changes: 2 additions & 0 deletions sample-apps/react-native/dogfood/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@rnx-kit/metro-config": "^1.3.3",
"@rnx-kit/metro-resolver-symlinks": "^0.1.22",
"@tsconfig/react-native": "^2.0.2",
"@types/express": "^4",
"@types/jest": "^29.2.1",
"@types/react": "^18.0.24",
"@types/react-native-dotenv": "^0.2.0",
Expand All @@ -67,6 +68,7 @@
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.2.1",
"eslint": "^8.19.0",
"express": "^4.18.2",
"jest": "^29.2.1",
"metro-react-native-babel-preset": "0.73.10",
"patch-package": "^6.4.7",
Expand Down
103 changes: 102 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7162,6 +7162,7 @@ __metadata:
"@stream-io/react-native-webrtc": 104.0.1
"@stream-io/video-react-native-sdk": "workspace:^"
"@tsconfig/react-native": ^2.0.2
"@types/express": ^4
"@types/jest": ^29.2.1
"@types/react": ^18.0.24
"@types/react-native-dotenv": ^0.2.0
Expand All @@ -7170,6 +7171,7 @@ __metadata:
"@types/react-test-renderer": ^18.0.0
babel-jest: ^29.2.1
eslint: ^8.19.0
express: ^4.18.2
jest: ^29.2.1
metro-react-native-babel-preset: 0.73.10
patch-package: ^6.4.7
Expand Down Expand Up @@ -7510,6 +7512,16 @@ __metadata:
languageName: node
linkType: hard

"@types/body-parser@npm:*":
version: 1.19.2
resolution: "@types/body-parser@npm:1.19.2"
dependencies:
"@types/connect": "*"
"@types/node": "*"
checksum: e17840c7d747a549f00aebe72c89313d09fbc4b632b949b2470c5cb3b1cb73863901ae84d9335b567a79ec5efcfb8a28ff8e3f36bc8748a9686756b6d5681f40
languageName: node
linkType: hard

"@types/chai-subset@npm:^1.3.3":
version: 1.3.3
resolution: "@types/chai-subset@npm:1.3.3"
Expand All @@ -7526,6 +7538,15 @@ __metadata:
languageName: node
linkType: hard

"@types/connect@npm:*":
version: 3.4.36
resolution: "@types/connect@npm:3.4.36"
dependencies:
"@types/node": "*"
checksum: 4dee3d966fb527b98f0cbbdcf6977c9193fc3204ed539b7522fe5e64dfa45f9017bdda4ffb1f760062262fce7701a0ee1c2f6ce2e50af36c74d4e37052303172
languageName: node
linkType: hard

"@types/debug@npm:^4.0.0":
version: 4.1.7
resolution: "@types/debug@npm:4.1.7"
Expand Down Expand Up @@ -7569,6 +7590,30 @@ __metadata:
languageName: node
linkType: hard

"@types/express-serve-static-core@npm:^4.17.33":
version: 4.17.36
resolution: "@types/express-serve-static-core@npm:4.17.36"
dependencies:
"@types/node": "*"
"@types/qs": "*"
"@types/range-parser": "*"
"@types/send": "*"
checksum: 410b13cbd663f18c0f8729e7f2ff54d960d96de76ebbae7cadb612972f85cc66c54051e00d32f11aa230c0a683d81a6d6fc7f7e4e383a95c0801494c517f36e1
languageName: node
linkType: hard

"@types/express@npm:^4":
version: 4.17.17
resolution: "@types/express@npm:4.17.17"
dependencies:
"@types/body-parser": "*"
"@types/express-serve-static-core": ^4.17.33
"@types/qs": "*"
"@types/serve-static": "*"
checksum: 0196dacc275ac3ce89d7364885cb08e7fb61f53ca101f65886dbf1daf9b7eb05c0943e2e4bbd01b0cc5e50f37e0eea7e4cbe97d0304094411ac73e1b7998f4da
languageName: node
linkType: hard

"@types/geojson@npm:*, @types/geojson@npm:^7946.0.10":
version: 7946.0.10
resolution: "@types/geojson@npm:7946.0.10"
Expand Down Expand Up @@ -7628,6 +7673,13 @@ __metadata:
languageName: node
linkType: hard

"@types/http-errors@npm:*":
version: 2.0.1
resolution: "@types/http-errors@npm:2.0.1"
checksum: 3bb0c50b0a652e679a84c30cd0340d696c32ef6558518268c238840346c077f899315daaf1c26c09c57ddd5dc80510f2a7f46acd52bf949e339e35ed3ee9654f
languageName: node
linkType: hard

"@types/invariant@npm:^2.2.35":
version: 2.2.35
resolution: "@types/invariant@npm:2.2.35"
Expand Down Expand Up @@ -7743,6 +7795,20 @@ __metadata:
languageName: node
linkType: hard

"@types/mime@npm:*":
version: 3.0.1
resolution: "@types/mime@npm:3.0.1"
checksum: 4040fac73fd0cea2460e29b348c1a6173da747f3a87da0dbce80dd7a9355a3d0e51d6d9a401654f3e5550620e3718b5a899b2ec1debf18424e298a2c605346e7
languageName: node
linkType: hard

"@types/mime@npm:^1":
version: 1.3.2
resolution: "@types/mime@npm:1.3.2"
checksum: 0493368244cced1a69cb791b485a260a422e6fcc857782e1178d1e6f219f1b161793e9f87f5fae1b219af0f50bee24fcbe733a18b4be8fdd07a38a8fb91146fd
languageName: node
linkType: hard

"@types/minimatch@npm:*, @types/minimatch@npm:^5.1.2":
version: 5.1.2
resolution: "@types/minimatch@npm:5.1.2"
Expand Down Expand Up @@ -7844,13 +7910,27 @@ __metadata:
languageName: node
linkType: hard

"@types/qs@npm:*":
version: 6.9.8
resolution: "@types/qs@npm:6.9.8"
checksum: c28e07d00d07970e5134c6eed184a0189b8a4649e28fdf36d9117fe671c067a44820890de6bdecef18217647a95e9c6aebdaaae69f5fe4b0bec9345db885f77e
languageName: node
linkType: hard

"@types/qs@npm:^6.9.5, @types/qs@npm:^6.9.7":
version: 6.9.7
resolution: "@types/qs@npm:6.9.7"
checksum: 7fd6f9c25053e9b5bb6bc9f9f76c1d89e6c04f7707a7ba0e44cc01f17ef5284adb82f230f542c2d5557d69407c9a40f0f3515e8319afd14e1e16b5543ac6cdba
languageName: node
linkType: hard

"@types/range-parser@npm:*":
version: 1.2.4
resolution: "@types/range-parser@npm:1.2.4"
checksum: b7c0dfd5080a989d6c8bb0b6750fc0933d9acabeb476da6fe71d8bdf1ab65e37c136169d84148034802f48378ab94e3c37bb4ef7656b2bec2cb9c0f8d4146a95
languageName: node
linkType: hard

"@types/react-dom@npm:^18.0.11, @types/react-dom@npm:^18.0.9":
version: 18.0.11
resolution: "@types/react-dom@npm:18.0.11"
Expand Down Expand Up @@ -8026,6 +8106,27 @@ __metadata:
languageName: node
linkType: hard

"@types/send@npm:*":
version: 0.17.1
resolution: "@types/send@npm:0.17.1"
dependencies:
"@types/mime": ^1
"@types/node": "*"
checksum: 10b620a5960058ef009afbc17686f680d6486277c62f640845381ec4baa0ea683fdd77c3afea4803daf5fcddd3fb2972c8aa32e078939f1d4e96f83195c89793
languageName: node
linkType: hard

"@types/serve-static@npm:*":
version: 1.15.2
resolution: "@types/serve-static@npm:1.15.2"
dependencies:
"@types/http-errors": "*"
"@types/mime": "*"
"@types/node": "*"
checksum: 15c261dbfc57890f7cc17c04d5b22b418dfa0330c912b46c5d8ae2064da5d6f844ef7f41b63c7f4bbf07675e97ebe6ac804b032635ec742ae45d6f1274259b3e
languageName: node
linkType: hard

"@types/source-list-map@npm:*":
version: 0.1.2
resolution: "@types/source-list-map@npm:0.1.2"
Expand Down Expand Up @@ -14936,7 +15037,7 @@ __metadata:
languageName: node
linkType: hard

"express@npm:^4.17.1":
"express@npm:^4.17.1, express@npm:^4.18.2":
version: 4.18.2
resolution: "express@npm:4.18.2"
dependencies:
Expand Down

0 comments on commit de6c89e

Please sign in to comment.