Skip to content

Commit 8c12584

Browse files
authored
fix: Bump up realtime; add integration tests (#1395)
1 parent 70d7199 commit 8c12584

14 files changed

+8093
-23
lines changed

.github/workflows/ci.yml

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ jobs:
3636
with:
3737
node-version: ${{ matrix.node }}
3838

39+
- name: Set up Supabase CLI
40+
uses: supabase/setup-cli@v1
41+
with:
42+
version: latest
43+
3944
- name: Run tests
4045
run: |
4146
npm clean-install

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
"build:umd": "webpack",
3030
"types-generate": "dts-gen -m '@supabase/supabase-js' -s",
3131
"test": "run-s test:types test:run",
32-
"test:run": "jest --runInBand",
33-
"test:coverage": "jest --runInBand --coverage",
32+
"test:run": "jest --runInBand --detectOpenHandles",
33+
"test:integration": "jest --runInBand test/integration.test.ts",
34+
"test:coverage": "jest --runInBand --coverage --testPathIgnorePatterns=\"test/integration.test.ts\"",
3435
"test:db": "cd infra/db && docker-compose down && docker-compose up -d && sleep 5",
3536
"test:watch": "jest --watch --verbose false --silent false",
3637
"test:clean": "cd infra/db && docker-compose down",
@@ -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.8-next.1",
4849
"@supabase/storage-js": "2.7.1"
4950
},
5051
"devDependencies": {

0 commit comments

Comments
 (0)