neon-testing 1.0.1 → 1.0.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 +4 -4
- package/index.ts +3 -3
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ Using an actual clone of your production database for integration testing lets y
|
|
|
29
29
|
|
|
30
30
|
### Install
|
|
31
31
|
|
|
32
|
-
```
|
|
32
|
+
```sh
|
|
33
33
|
bun add -d neon-testing
|
|
34
34
|
```
|
|
35
35
|
|
|
@@ -138,8 +138,8 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
|
|
|
138
138
|
|
|
139
139
|
## Need expert help?
|
|
140
140
|
|
|
141
|
-
I take on a few consulting projects each year where I
|
|
141
|
+
Hi, I'm [@lirbank](https://github.com/lirbank). I take on a few consulting projects each year where I help companies build, unblock, and ship. Here's what I do:
|
|
142
142
|
|
|
143
|
-
**[STΛR MODΞ](https://www.starmode.dev/)** —
|
|
143
|
+
**[STΛR MODΞ](https://www.starmode.dev/)** — A boutique AI development studio I run with AI/ML expert and data scientist [@spencer-g-smith](https://github.com/spencer-g-smith). We help companies build accurate AI solutions: AI-first apps, advanced workflows, and agentic systems.
|
|
144
144
|
|
|
145
|
-
**[Mikael Lirbank](https://www.lirbank.com/)** — My solo practice, focused on web app development, test automation, code quality, and technical architecture. I'm
|
|
145
|
+
**[Mikael Lirbank](https://www.lirbank.com/)** — My solo practice, focused on web app development, test automation, code quality, and technical architecture. I'm friendly and happy to help with the hard stuff.
|
package/index.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { afterAll, beforeAll } from "vitest";
|
|
|
17
17
|
*/
|
|
18
18
|
function createConnectionUri(
|
|
19
19
|
connectionParameters: ConnectionDetails,
|
|
20
|
-
type: "pooler" | "direct"
|
|
20
|
+
type: "pooler" | "direct",
|
|
21
21
|
) {
|
|
22
22
|
const { role, password, host, pooler_host, database } =
|
|
23
23
|
connectionParameters.connection_parameters;
|
|
@@ -77,7 +77,7 @@ export function makeNeonTesting(factoryOptions: NeonTestingOptions) {
|
|
|
77
77
|
if (isTestBranch) {
|
|
78
78
|
await apiClient.deleteProjectBranch(
|
|
79
79
|
factoryOptions.projectId,
|
|
80
|
-
branch.id
|
|
80
|
+
branch.id,
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -85,7 +85,7 @@ export function makeNeonTesting(factoryOptions: NeonTestingOptions) {
|
|
|
85
85
|
|
|
86
86
|
const testDbSetup = (
|
|
87
87
|
/** Override any factory options except apiKey */
|
|
88
|
-
overrides?: NeonTestingOverrides
|
|
88
|
+
overrides?: NeonTestingOverrides,
|
|
89
89
|
) => {
|
|
90
90
|
// Merge factory options with overrides
|
|
91
91
|
const options = { ...factoryOptions, ...overrides };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neon-testing",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A Vitest utility for automated integration tests with Neon",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
"bugs": "https://github.com/starmode-base/neon-testing/issues",
|
|
17
17
|
"module": "index.ts",
|
|
18
18
|
"type": "module",
|
|
19
|
+
"files": [
|
|
20
|
+
"index.ts"
|
|
21
|
+
],
|
|
19
22
|
"scripts": {
|
|
20
23
|
"test": "vitest",
|
|
21
24
|
"format": "prettier --write .",
|
|
22
|
-
"release": "bun publish
|
|
25
|
+
"release": "bun publish",
|
|
26
|
+
"prepublishOnly": "git diff-index --quiet HEAD || (echo 'Error: You have uncommitted changes' && exit 1) && tsc && vitest run && prettier --check .",
|
|
27
|
+
"postpublish": "git tag v$(bun -p \"require('./package.json').version\") && git push --tags"
|
|
23
28
|
},
|
|
24
29
|
"dependencies": {
|
|
25
|
-
"@neondatabase/api-client": "^2.
|
|
30
|
+
"@neondatabase/api-client": "^2.1.0"
|
|
26
31
|
},
|
|
27
32
|
"peerDependencies": {
|
|
28
33
|
"typescript": "^5.8.3",
|
|
29
|
-
"vitest": "^3.2.
|
|
34
|
+
"vitest": "^3.2.4"
|
|
30
35
|
},
|
|
31
36
|
"devDependencies": {
|
|
32
37
|
"@neondatabase/serverless": "^1.0.1",
|
|
33
38
|
"dotenv": "^16.5.0",
|
|
34
|
-
"pg": "^8.16.
|
|
39
|
+
"pg": "^8.16.2",
|
|
35
40
|
"postgres": "^3.4.7",
|
|
36
41
|
"prettier": "^3.5.3"
|
|
37
|
-
}
|
|
38
|
-
"files": [
|
|
39
|
-
"index.ts",
|
|
40
|
-
"README.md",
|
|
41
|
-
"LICENSE"
|
|
42
|
-
]
|
|
42
|
+
}
|
|
43
43
|
}
|