GitHub - stackframe-projects/pgmock: In-memory Postgres for unit/E2E tests
pgmock
Demo —
Discord
pgmock is an in-memory PostgreSQL mock server for unit and E2E tests. It requires no external dependencies and runs entirely within WebAssembly on both Node.js and the browser.
Installation
If you'd like to run pgmock in a browser, see the Browser support section for detailed instructions.
Getting started
You can run an in-memory server like so:
import { PostgresMock } from "pgmock";
const mock = await PostgresMock.create();
const connectionString = await mock.listen(5432);...
Read more at github.com