Skip to content

Commit 089efa0

Browse files
georgRusanovgeorgiy.rusanov
authored andcommitted
Expo ci fix (#1465)
* try to fix ci * trying to fix expo job * buils and test in one step * fix * another try * check realtime * another try * debug * debug * debug * debug * more logs * looking the problem with realtime * more logs * more logs * debug * wait for Tenant realtime-dev * use real ws in expo * real ws * deleted all logging * trying universal * deleted universal --------- Co-authored-by: georgiy.rusanov <[email protected]>
1 parent f4a465e commit 089efa0

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
- name: Run integration and browser tests on Deno 2.x only
7575
if: ${{ matrix.deno == '2.x' }}
7676
run: |
77+
supabase start
7778
npm run test:integration:browser
7879
7980
- name: Stop Supabase
@@ -100,14 +101,6 @@ jobs:
100101
npm run build
101102
npm run test:integration || npm run test:integration
102103
103-
- name: Run expo compatibility tests
104-
run: |
105-
cd examples/expo-app
106-
npm install
107-
# make sure we're using the version that was just packed above
108-
npm update @supabase/supabase-js
109-
npm run test || npm run test
110-
111104
- name: Stop Supabase
112105
run: supabase stop
113106

examples/expo-app/jest.setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
global.WebSocket = require('ws')

examples/expo-app/package-lock.json

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/expo-app/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,21 @@
4242
},
4343
"devDependencies": {
4444
"@babel/core": "^7.25.2",
45+
"@testing-library/react-native": "^13.2.0",
4546
"@types/jest": "^29.5.14",
4647
"@types/react": "~19.1.0",
4748
"eslint": "^9.25.0",
4849
"eslint-config-expo": "~9.2.0",
4950
"jest": "~29.7.0",
5051
"jest-expo": "~53.0.5",
5152
"typescript": "~5.8.3",
52-
"@testing-library/react-native": "^13.2.0"
53+
"ws": "^8.18.2"
5354
},
5455
"private": true,
5556
"jest": {
56-
"preset": "jest-expo"
57+
"preset": "jest-expo",
58+
"setupFiles": [
59+
"./jest.setup.js"
60+
]
5761
}
5862
}

0 commit comments

Comments
 (0)