Skip to content
Merged
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
14 changes: 4 additions & 10 deletions .github/workflows/ci-supabase-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ jobs:
- name: Install dependencies
run: npm ci --legacy-peer-deps

- name: Type Check
run: npx nx test:types supabase-js

- name: Run Unit Tests + Coverage
run: npx nx test:coverage supabase-js
- name: Type Check + Unit Tests + Coverage
run: npx nx run-many --targets=test:types,test:coverage --projects=supabase-js

- name: Upload coverage results to Coveralls
uses: coverallsapp/github-action@v2
Expand Down Expand Up @@ -219,7 +216,7 @@ jobs:
if: ${{ matrix.deno == '2.x' }}
run: |
cd packages/core/supabase-js/test/deno
npx nx test:edge-functions supabase-js
npm run test:edge-functions
cd ../../..

- name: Stop Supabase
Expand Down Expand Up @@ -344,9 +341,6 @@ jobs:
echo "Verifying storage bucket exists"
supabase db query "select id, name from storage.buckets where id = 'test-bucket';"

- name: Install Playwright browsers and dependencies
run: npx playwright install --with-deps

- name: Verify packages in Verdaccio
run: |
echo "Verifying @supabase/supabase-js is available in Verdaccio..."
Expand All @@ -361,7 +355,7 @@ jobs:
cd "$TEST_DIR"
echo "registry=http://localhost:4873/" > .npmrc
npm install --legacy-peer-deps
npx playwright install
npx playwright install --with-deps
npm run test
rm -f .npmrc

Expand Down
16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,14 @@ All pull requests must meet these requirements:

Each package has its own testing requirements and infrastructure. For comprehensive testing information, see:

- **[TESTING.md](./TESTING.md)** - Overview of testing across all packages
- **[TESTING.md](./docs/TESTING.md)** - Overview of testing across all packages
- **Package-specific guides** - Detailed testing instructions in each package's README:
- [`supabase-js`](../packages/core/supabase-js/README.md)
- [`auth-js`](../packages/core/auth-js/README.md)
- [`functions-js`](../packages/core/functions-js/README.md)
- [`postgrest-js`](../packages/core/postgrest-js/README.md)
- [`realtime-js`](../packages/core/realtime-js/README.md)
- [`storage-js`](../packages/core/storage-js/README.md)
- [`supabase-js`](./packages/core/supabase-js/README.md)
- [`auth-js`](./packages/core/auth-js/README.md)
- [`functions-js`](./packages/core/functions-js/README.md)
- [`postgrest-js`](./packages/core/postgrest-js/README.md)
- [`realtime-js`](./packages/core/realtime-js/README.md)
- [`storage-js`](./packages/core/storage-js/README.md)

### Quick Testing Commands

Expand Down Expand Up @@ -360,7 +360,7 @@ We are committed to providing a welcoming and inspiring community for all. Pleas

## 📄 License

By contributing to Supabase JS Libraries, you agree that your contributions will be licensed under the [MIT License](../LICENSE).
By contributing to Supabase JS Libraries, you agree that your contributions will be licensed under the [MIT License](./LICENSE).

---

Expand Down
11 changes: 8 additions & 3 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions docs/TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Each package has unique testing requirements. Please refer to the individual REA

### Core Packages

| Package | Docker Required | Test Command | Documentation |
| ---------------- | ---------------------------------------- | -------------------------------- | ------------------------------------------------------------- |
| **auth-js** | ✅ Yes (GoTrue + PostgreSQL) | `npx nx test:auth auth-js` | [Testing Guide](packages/core/auth-js/README.md#testing) |
| **functions-js** | ✅ Yes (Deno relay via testcontainers) | `npx nx test functions-js` | [Testing Guide](packages/core/functions-js/README.md#testing) |
| **postgrest-js** | ✅ Yes (PostgREST + PostgreSQL) | `npx nx test postgrest-js` | [Testing Guide](packages/core/postgrest-js/README.md#testing) |
| **realtime-js** | ❌ No (uses mock WebSockets) | `npx nx test realtime-js` | [Testing Guide](packages/core/realtime-js/README.md#testing) |
| **storage-js** | ✅ Yes (Storage API + PostgreSQL + Kong) | `npx nx test:storage storage-js` | [Testing Guide](packages/core/storage-js/README.md#testing) |
| **supabase-js** | ❌ No (unit tests only) | `npx nx test supabase-js` | [Testing Guide](packages/core/supabase-js/README.md#testing) |
| Package | Docker Required | Test Command | Documentation |
| ---------------- | ---------------------------------------- | -------------------------------- | ---------------------------------------------------------------- |
| **auth-js** | ✅ Yes (GoTrue + PostgreSQL) | `npx nx test:auth auth-js` | [Testing Guide](../packages/core/auth-js/README.md#testing) |
| **functions-js** | ✅ Yes (Deno relay via testcontainers) | `npx nx test functions-js` | [Testing Guide](../packages/core/functions-js/README.md#testing) |
| **postgrest-js** | ✅ Yes (PostgREST + PostgreSQL) | `npx nx test postgrest-js` | [Testing Guide](../packages/core/postgrest-js/README.md#testing) |
| **realtime-js** | ❌ No (uses mock WebSockets) | `npx nx test realtime-js` | [Testing Guide](../packages/core/realtime-js/README.md#testing) |
| **storage-js** | ✅ Yes (Storage API + PostgreSQL + Kong) | `npx nx test:storage storage-js` | [Testing Guide](../packages/core/storage-js/README.md#testing) |
| **supabase-js** | ❌ No (unit tests only) | `npx nx test supabase-js` | [Testing Guide](../packages/core/supabase-js/TESTING.md) |

### Common Test Commands

Expand Down Expand Up @@ -78,4 +78,4 @@ When adding new features or fixing bugs:
3. Update test documentation if you change testing infrastructure
4. Follow the testing patterns established in each package

For more details on contributing, see [CONTRIBUTING.md](./CONTRIBUTING.md).
For more details on contributing, see [CONTRIBUTING.md](../CONTRIBUTING.md).
127 changes: 0 additions & 127 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"jsonwebtoken": "^9.0.0",
"nx": "21.6.2",
"prettier": "^3.6.2",
"rimraf": "^6.0.1",
"semantic-release-plugin-update-version-in-files": "^1.1.0",
"ts-node": "^10.9.1",
"tslib": "^2.3.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/core/auth-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@
"directory": "packages/core/auth-js"
},
"scripts": {
"clean": "rimraf dist docs",
"coverage": "echo \"run npm test\"",
"build:node18": "npm run clean && npm run build:main && npm run build:module",
"build": "npm run clean && npm run build:main && npm run build:module",
"build:node18": "npm run build:main && npm run build:module",
"build": "npm run build:main && npm run build:module",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"test:auth": "npm run test:clean && npm run test:infra && npm run test:suite && npm run test:clean",
Expand Down
3 changes: 1 addition & 2 deletions packages/core/functions-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
"types": "dist/module/index.d.ts",
"sideEffects": false,
"scripts": {
"clean": "rimraf dist docs/v2",
"format": "prettier --write \"{src,test}/**/*.ts\"",
"build": "npm run clean && npm run build:main && npm run build:module",
"build": "npm run build:main && npm run build:module",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"docs": "typedoc src/index.ts --out docs/v2",
Expand Down
3 changes: 1 addition & 2 deletions packages/core/postgrest-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"directory": "packages/core/postgrest-js"
},
"scripts": {
"clean": "rimraf dist docs/v2",
"build": "npm run clean && npm run build:cjs && npm run build:esm",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "tsc -p tsconfig.json",
"build:esm": "cpy wrapper.mjs dist/esm/",
"build:module": "npm run build:cjs",
Expand Down
4 changes: 1 addition & 3 deletions packages/core/realtime-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"author": "Supabase",
"license": "MIT",
"scripts": {
"clean": "rimraf dist docs/v2",
"format": "prettier --write \"{src,test}/**/*.ts\"",
"build": "npm run clean && npm run format && npm run build:main && npm run build:module",
"build": "npm run build:main && npm run build:module",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"test": "vitest run",
Expand Down
3 changes: 1 addition & 2 deletions packages/core/storage-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"directory": "packages/core/storage-js"
},
"scripts": {
"clean": "rimraf dist docs/v2",
"build": "npm run clean && npm run build:main && npm run build:module && npm run build:umd",
"build": "npm run build:main && npm run build:module && npm run build:umd",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"build:umd": "webpack",
Expand Down
Loading
Loading