pgmock
github.com · Open source · Quiet
In-memory Postgres for unit and end-to-end tests
- Data & databases
- Open source
- JavaScript
- Day-7 check
- Day-30 check
- Stars
- 1.2k
- Forks
- 24
- Open issues
- 18
- Last commit
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
pgmock runs an in-memory PostgreSQL database for unit and end-to-end tests, so test suites can run without a separate database server. It is written in JavaScript and was open-sourced by its maker after being used at work.
Repository description on GitHub: “In-memory Postgres for unit/E2E tests”
What it does
- In-memory PostgreSQL mock that runs in WebAssembly
- Runs on Node.js and in the browser with no external dependencies
- Provides a node-postgres config without serving a port
Good for
- Run unit tests against an in-memory Postgres database
- Run end-to-end tests without a separate database server
- Connect the pg client to the mock without opening a port
Suits: JavaScript developers writing database tests.
What you can try
Read the README on GitHub and install from source.
Install
npm install pgmockTaken from the project’s README. Read the project’s own instructions before running anything.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw pgmock on , when n2d4 posted it to Show HN. GitHub listed no published releases for stackframe-projects/pgmock when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 379 points, 79 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 379 points, 79 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: stackframe-projects/pgmock
- Found: n2d4 posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was pgmock released?
- No dated release record is available. Kip found it on Show HN on 7 Apr 2024.
- Is pgmock open source?
- Its source is public on GitHub at stackframe-projects/pgmock under the MIT licence.
- What does pgmock run on?
- Library, Web.
- Is pgmock free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is pgmock still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | stackframe-projects/pgmock REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-39960537. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.