neon-testing 1.0.0 → 1.0.1
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 +12 -12
- package/index.ts +0 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# Neon testing
|
|
2
2
|
|
|
3
|
-
A Vitest utility for
|
|
3
|
+
A Vitest utility for automated integration tests with [Neon](https://neon.com/).
|
|
4
|
+
|
|
5
|
+
Each test file runs against its own isolated PostgreSQL database (Neon branch), ensuring clean, parallel, and reproducible testing of code that relies on a database. Because it uses a real database, you can test code logic that depends on database features such as transaction rollbacks, unique constraints, and more.
|
|
6
|
+
|
|
7
|
+
Using an actual clone of your production database for integration testing lets you verify functionality that mocks cannot.
|
|
4
8
|
|
|
5
9
|
## Features
|
|
6
10
|
|
|
7
|
-
- 🔄 **Isolated test environments** - Each test file runs against its own
|
|
11
|
+
- 🔄 **Isolated test environments** - Each test file runs against its own Postgres database with your actual schema and constraints
|
|
8
12
|
- 🧹 **Automatic cleanup** - Neon test branches are created and destroyed automatically
|
|
9
13
|
- 🛡️ **TypeScript native** - No JavaScript support
|
|
10
14
|
- 🎯 **ESM only** - No CommonJS support
|
|
@@ -124,22 +128,18 @@ Tests within a single test file share the same database instance (Neon branch),
|
|
|
124
128
|
|
|
125
129
|
This works because Vitest runs test files in parallel, but tests within each test file run one at a time.
|
|
126
130
|
|
|
127
|
-
## License
|
|
128
|
-
|
|
129
|
-
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
130
|
-
|
|
131
131
|
## Contributing
|
|
132
132
|
|
|
133
133
|
Contributions are welcome! Please open issues or pull requests on [GitHub](https://github.com/starmode-base/neon-testing/pulls).
|
|
134
134
|
|
|
135
|
-
##
|
|
135
|
+
## License
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
138
138
|
|
|
139
|
-
##
|
|
139
|
+
## Need expert help?
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
I take on a few consulting projects each year where I can build, unblock, and ship.
|
|
142
142
|
|
|
143
|
-
**[STΛR MODΞ](https://www.starmode.dev/)**
|
|
143
|
+
**[STΛR MODΞ](https://www.starmode.dev/)** — The AI development studio I run with AI/ML expert and data scientist Spencer 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/)**
|
|
145
|
+
**[Mikael Lirbank](https://www.lirbank.com/)** — My solo practice, focused on web app development, test automation, code quality, and technical architecture. I'm around, friendly, and happy to help with the hard stuff.
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neon-testing",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "A Vitest utility for
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "A Vitest utility for automated integration tests with Neon",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"neon",
|
|
7
7
|
"postgres",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@neondatabase/api-client": "^2.0.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"typescript": "^5",
|
|
29
|
-
"vitest": "^3"
|
|
28
|
+
"typescript": "^5.8.3",
|
|
29
|
+
"vitest": "^3.2.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@neondatabase/serverless": "^1.0.1",
|