Skip to content

Commit a4dc846

Browse files
committed
fix: Bump up realtime; add integration tests
1 parent 70d7199 commit a4dc846

File tree

10 files changed

+8032
-14
lines changed

10 files changed

+8032
-14
lines changed

.github/workflows/ci.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,21 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: ${{ matrix.node }}
38-
38+
- name: Set up Supabase CLI
39+
uses: supabase/setup-cli@v1
40+
with:
41+
version: latest
3942
- name: Run tests
4043
run: |
4144
npm clean-install
4245
npm run test:coverage
4346
47+
- name: Start Supabase
48+
run: supabase start
49+
50+
- name: Run Integration tests
51+
run: pnpm run test:integration
52+
4453
- name: Upload coverage results to Coveralls
4554
uses: coverallsapp/github-action@master
4655
with:

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,21 @@ const supabase = createClient('https://xyzcompany.supabase.co', 'public-anon-key
8686
})
8787
```
8888

89+
## Testing
90+
91+
### Unit Testing
92+
93+
```bash
94+
pnpm test
95+
```
96+
97+
### Integration Testing
98+
99+
```bash
100+
supabase start
101+
pnpm run test:integration
102+
```
103+
89104
## Badges
90105

91106
[![Coverage Status](https://coveralls.io/repos/github/supabase/supabase-js/badge.svg?branch=master)](https://coveralls.io/github/supabase/supabase-js?branch=master)

package-lock.json

+15-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"types-generate": "dts-gen -m '@supabase/supabase-js' -s",
3131
"test": "run-s test:types test:run",
3232
"test:run": "jest --runInBand",
33+
"test:integration": "jest --runInBand test/integration.test.ts",
3334
"test:coverage": "jest --runInBand --coverage",
3435
"test:db": "cd infra/db && docker-compose down && docker-compose up -d && sleep 5",
3536
"test:watch": "jest --watch --verbose false --silent false",
@@ -44,7 +45,7 @@
4445
"@supabase/functions-js": "2.4.4",
4546
"@supabase/node-fetch": "2.6.15",
4647
"@supabase/postgrest-js": "1.19.4",
47-
"@supabase/realtime-js": "2.11.2",
48+
"@supabase/realtime-js": "2.11.6",
4849
"@supabase/storage-js": "2.7.1"
4950
},
5051
"devDependencies": {

0 commit comments

Comments
 (0)