pgsql-test 2.14.1 → 2.14.2
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 +33 -6
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
|
|
19
19
|
`pgsql-test` gives you instant, isolated PostgreSQL databases for each test — with automatic transaction rollbacks, context switching, and clean seeding. Forget flaky tests and brittle environments. Write real SQL. Get real coverage. Stay fast.
|
|
20
20
|
|
|
21
|
-
If you're writing tests for Supabase, check out [`supabase-test`](https://www.npmjs.com/package/supabase-test) for Supabase-optimized defaults.
|
|
22
|
-
|
|
23
21
|
## Install
|
|
24
22
|
|
|
25
23
|
```sh
|
|
@@ -35,13 +33,17 @@ npm install pgsql-test
|
|
|
35
33
|
* 🧪 **Compatible with any async runner** — works with `Jest`, `Mocha`, etc.
|
|
36
34
|
* 🧹 **Auto teardown** — no residue, no reboots, just clean exits
|
|
37
35
|
|
|
38
|
-
###
|
|
36
|
+
### Tutorials
|
|
37
|
+
|
|
38
|
+
📚 **[Learn how to test PG with pgsql-test →](https://launchql.com/learn/e2e-postgres-testing)**
|
|
39
|
+
|
|
40
|
+
### Using with Supabase
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
If you're writing tests for Supabase, check out [`supabase-test`](https://www.npmjs.com/package/supabase-test) for Supabase-optimized defaults.
|
|
41
43
|
|
|
42
|
-
|
|
43
|
-
* 🔧 **Composable test scaffolds** — integrate with full LaunchQL stacks or use standalone
|
|
44
|
+
### pgpm migrations
|
|
44
45
|
|
|
46
|
+
Part of the [pgpm](https://pgpm.io) ecosystem, `pgsql-test` is built to pair seamlessly with our TypeScript-based package manager and migration tool. `pgpm` gives you modular Postgres packages, deterministic plans, and tag-aware releases—perfect for authoring the migrations that `pgsql-test` runs.
|
|
45
47
|
|
|
46
48
|
## Table of Contents
|
|
47
49
|
|
|
@@ -629,6 +631,26 @@ const { conn, db, teardown } = await getConnections({
|
|
|
629
631
|
});
|
|
630
632
|
```
|
|
631
633
|
|
|
634
|
+
## Education and Tutorials
|
|
635
|
+
|
|
636
|
+
1. 🚀 [Quickstart: Getting Up and Running](https://launchql.com/learn/quickstart)
|
|
637
|
+
Get started with modular databases in minutes. Install prerequisites and deploy your first module.
|
|
638
|
+
|
|
639
|
+
2. 📦 [Modular PostgreSQL Development with Database Packages](https://launchql.com/learn/modular-postgres)
|
|
640
|
+
Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
|
|
641
|
+
|
|
642
|
+
3. ✏️ [Authoring Database Changes](https://launchql.com/learn/authoring-database-changes)
|
|
643
|
+
Master the workflow for adding, organizing, and managing database changes with pgpm.
|
|
644
|
+
|
|
645
|
+
4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://launchql.com/learn/e2e-postgres-testing)
|
|
646
|
+
Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
|
|
647
|
+
|
|
648
|
+
5. ⚡ [Supabase Testing](https://launchql.com/learn/supabase)
|
|
649
|
+
TypeScript-native testing for Supabase with modern workflows.
|
|
650
|
+
|
|
651
|
+
6. 🔧 [Troubleshooting](https://launchql.com/learn/troubleshooting)
|
|
652
|
+
Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
653
|
+
|
|
632
654
|
## Related LaunchQL Tooling
|
|
633
655
|
|
|
634
656
|
### 🧪 Testing
|
|
@@ -670,6 +692,11 @@ const { conn, db, teardown } = await getConnections({
|
|
|
670
692
|
* [@launchql/query-builder](https://github.com/launchql/launchql/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.
|
|
671
693
|
* [@launchql/query](https://github.com/launchql/launchql/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
|
|
672
694
|
|
|
695
|
+
## Credits
|
|
696
|
+
|
|
697
|
+
🛠 Built by LaunchQL — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/launchql)
|
|
698
|
+
|
|
699
|
+
|
|
673
700
|
## Disclaimer
|
|
674
701
|
|
|
675
702
|
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgsql-test",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.2",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution",
|
|
6
6
|
"main": "index.js",
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
"@types/pg-copy-streams": "^1.2.5"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@launchql/core": "^2.15.
|
|
65
|
-
"@launchql/env": "^2.5.
|
|
66
|
-
"@launchql/logger": "^1.1.
|
|
67
|
-
"@launchql/server-utils": "^2.6.
|
|
68
|
-
"@launchql/types": "^2.8.
|
|
64
|
+
"@launchql/core": "^2.15.2",
|
|
65
|
+
"@launchql/env": "^2.5.1",
|
|
66
|
+
"@launchql/logger": "^1.1.6",
|
|
67
|
+
"@launchql/server-utils": "^2.6.2",
|
|
68
|
+
"@launchql/types": "^2.8.1",
|
|
69
69
|
"csv-parse": "^5.5.5",
|
|
70
70
|
"pg": "^8.16.0",
|
|
71
|
-
"pg-cache": "^1.4.
|
|
71
|
+
"pg-cache": "^1.4.2",
|
|
72
72
|
"pg-copy-streams": "^6.0.6",
|
|
73
|
-
"pg-env": "^1.1.
|
|
73
|
+
"pg-env": "^1.1.3"
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "25b59a1403d95d86be14bd36c94e5af1689df1c3"
|
|
76
76
|
}
|