{"library":"mocha-docker-postgres","type":"library","category":null,"description":"Mocha test helper that automatically manages a Docker-based PostgreSQL container for integration tests. Version 1.0.1 is the latest stable release. It patches Mocha's Context prototype to provide `this.dockerPostgres()` and `this.conString`. The container is reused across tests (only started once per run), and each call creates a fresh database, enabling fast, isolated test databases without manual setup or teardown. Lighter than full testcontainers solutions; designed specifically for Mocha.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mocha-docker-postgres","imports":["require('mocha-docker-postgres')","before(function() { return this.dockerPostgres(); })","const conString = this.conString"]},{"cmd":"yarn add mocha-docker-postgres","imports":[]},{"cmd":"pnpm add mocha-docker-postgres","imports":[]}],"homepage":"https://github.com/One-com/node-mocha-docker-postgres","github":"git://github.com/One-com/node-mocha-docker-postgres","docs":null,"changelog":null,"pypi":null,"npm":"mocha-docker-postgres","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}