supabase-test 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -18
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -576,7 +576,7 @@ This table documents the available options for the `getConnections` function. Th
|
|
|
576
576
|
| Option | Type | Default | Description |
|
|
577
577
|
| ------------------------ | ---------- | ---------------- | --------------------------------------------------------------------------- |
|
|
578
578
|
| `db.extensions` | `string[]` | `[]` | Array of PostgreSQL extensions to include in the test database |
|
|
579
|
-
| `db.cwd` | `string` | `process.cwd()` | Working directory used for
|
|
579
|
+
| `db.cwd` | `string` | `process.cwd()` | Working directory used for PGPM or Sqitch projects |
|
|
580
580
|
| `db.connection.user` | `string` | `'app_user'` | User for simulating RLS via `setContext()` |
|
|
581
581
|
| `db.connection.password` | `string` | `'app_password'` | Password for RLS test user |
|
|
582
582
|
| `db.connection.role` | `string` | `'anonymous'` | Default role used during `setContext()` |
|
|
@@ -656,10 +656,10 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
656
656
|
|
|
657
657
|
### 🧪 Testing
|
|
658
658
|
|
|
659
|
-
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/
|
|
660
|
-
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/
|
|
661
|
-
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/
|
|
662
|
-
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/
|
|
659
|
+
* [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
|
|
660
|
+
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
|
|
661
|
+
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
|
|
662
|
+
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/postgres/pg-query-context): **🔒 Session context injection** to add session-local context (e.g., `SET LOCAL`) into queries—ideal for setting `role`, `jwt.claims`, and other session settings.
|
|
663
663
|
|
|
664
664
|
### 🧠 Parsing & AST
|
|
665
665
|
|
|
@@ -673,25 +673,25 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
673
673
|
|
|
674
674
|
### 🚀 API & Dev Tools
|
|
675
675
|
|
|
676
|
-
* [
|
|
677
|
-
* [
|
|
676
|
+
* [@constructive-io/graphql-server](https://github.com/constructive-io/constructive/tree/main/graphql/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
|
|
677
|
+
* [@constructive-io/graphql-explorer](https://github.com/constructive-io/constructive/tree/main/graphql/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
|
|
678
678
|
|
|
679
679
|
### 🔁 Streaming & Uploads
|
|
680
680
|
|
|
681
|
-
* [etag-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
682
|
-
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
683
|
-
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
684
|
-
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
685
|
-
* [
|
|
686
|
-
* [
|
|
681
|
+
* [etag-hash](https://github.com/constructive-io/constructive/tree/main/streaming/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
|
|
682
|
+
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/streaming/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
|
|
683
|
+
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
|
|
684
|
+
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
|
|
685
|
+
* [@constructive-io/s3-streamer](https://github.com/constructive-io/constructive/tree/main/streaming/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
|
|
686
|
+
* [@constructive-io/upload-names](https://github.com/constructive-io/constructive/tree/main/streaming/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
|
|
687
687
|
|
|
688
688
|
### 🧰 CLI & Codegen
|
|
689
689
|
|
|
690
|
-
* [pgpm](https://github.com/constructive-io/constructive/tree/main/
|
|
691
|
-
* [@
|
|
692
|
-
* [
|
|
693
|
-
* [@
|
|
694
|
-
* [@
|
|
690
|
+
* [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
|
|
691
|
+
* [@constructive-io/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing Constructive projects—supports database scaffolding, migrations, seeding, code generation, and automation.
|
|
692
|
+
* [@constructive-io/graphql-codegen](https://github.com/constructive-io/constructive/tree/main/graphql/codegen): **✨ GraphQL code generation** (types, operations, SDK) from schema/endpoint introspection.
|
|
693
|
+
* [@constructive-io/query-builder](https://github.com/constructive-io/constructive/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
|
|
694
|
+
* [@constructive-io/graphql-query](https://github.com/constructive-io/constructive/tree/main/graphql/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
|
|
695
695
|
|
|
696
696
|
## Credits
|
|
697
697
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supabase-test",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"author": "Interweb <developers@interweb.io>",
|
|
5
5
|
"description": "supabase-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests with Supabase defaults baked in",
|
|
6
6
|
"main": "index.js",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"build": "npm run clean; tsc; tsc -p tsconfig.esm.json; npm run copy",
|
|
49
49
|
"build:dev": "npm run clean; tsc --declarationMap; tsc -p tsconfig.esm.json; npm run copy",
|
|
50
50
|
"lint": "eslint . --fix",
|
|
51
|
-
"test": "jest",
|
|
51
|
+
"test": "jest --passWithNoTests",
|
|
52
52
|
"test:watch": "jest --watch"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@pgpmjs/types": "^2.12.
|
|
56
|
-
"pg-env": "^1.2.
|
|
57
|
-
"pgsql-test": "^2.17.
|
|
55
|
+
"@pgpmjs/types": "^2.12.4",
|
|
56
|
+
"pg-env": "^1.2.3",
|
|
57
|
+
"pgsql-test": "^2.17.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"makage": "^0.1.8"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "22cfe32e994e26a6490e04e28bab26d1e7e6345c"
|
|
63
63
|
}
|