mountebank is the first open source tool for cross-platform, multi-protocol test doubles over the wire. It supports HTTP, HTTPS, TCP (text and binary), and SMTP protocols. Current stable version is 2.9.4, published under the @mbtest/mountebank package (was formerly mountebank). The community-driven project requires Node.js >=20. It offers mock verification, stubbing with advanced predicates, JavaScript injection, and record-playback through proxying, distinguishing itself from alternatives like WireMock by supporting multiple protocols and being fully open source without platform constraints. Releases are maintained by the mountebank-testing organization.
npm install mountebank-testNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates and starts an HTTP imposter on port 3000 with a stub responding to /api/data.
Use `npm install --save-dev @mbtest/mountebank` and update import paths to '@mbtest/mountebank'.
Upgrade Node.js to version 20 or higher.
Migrate to @mbtest/mountebank v2.9.4.
Use Node 20+ for local development; Docker users must use Node 24 image.
Update SMTP-related code to be compatible with nodemailer v8.
Run `npm install @mbtest/mountebank` and update imports to '@mbtest/mountebank'.
Use `import { spawn } from '@mbtest/mountebank';` then `const mb = spawn({...});`.Use named import: `import { spawn, Imposter } from '@mbtest/mountebank';`