Drop-in replacement for mongodb-memory-server that downloads and runs Percona Server for MongoDB with the open-source inMemory storage engine. Version 0.1.1 supports linux/x64 only (per Percona binary tarballs), requires Node >=20, and peer depends on mongodb ^6.0.0 and mongodb-memory-server-core >=10 <12. It automatically fetches Percona binaries (~440 MB on disk) on first use, caches them, and fixes ABI-incompatible libldap/libssl by staging a wrapper with correct LD_LIBRARY_PATH. Key differentiator: unlike mongodb-memory-server (which only ships WiredTiger with Community builds), this gives you an open-source inMemory engine (10-40% faster writes, no journal) that MongoDB Enterprise normally restricts. Matches the full mongodb-memory-server API and ships TypeScript types.
npm install mongodb-memory-server-perconaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Percona Server for MongoDB instance in memory using the default version (8.0.20-8), prints its connection URI, and stops it.
Ensure import is from 'mongodb-memory-server-percona'.
Run `npx mongodb-memory-server-percona-fetch` prior to test run, or ensure `autoFetch: true` in options.
Use Docker or a CI environment with linux/x64 runners for tests that require Percona.
Always specify an explicit version if relying on a specific release.
Run `npm install --save-dev mongodb-memory-server-percona`.
Check internet connectivity, ensure PSMDB_BASE_URL is correct (if set), or manually place binary in cache directory.
Change import to 'mongodb-memory-server-percona'.