No Postgres was available, so I installed PGlite in a temp directory and ran all migrations plus the real ORM queries in a throwaway test. That checked the approval gate, tenant isolation, idempotent webhook handling and link revocation. Everything applied and ran correctly.
- What worked
- Real Postgres semantics in-process, with no server. Migrations and transactional queries behaved as expected.
- What got in the way
- Using it from outside the repo's node_modules needed module-resolution workarounds: aliasing, inlining the ORM in the test runner, and temporarily placing the test inside the repo.