Getting started
Installation
Run the InboxTap CLI and add the test SDK to a Bun or Node project.InboxTap can run directly from the npm package or be installed as a development dependency in the project that owns your tests.
Requirements
- Node.js 20 or later for the published CLI and package.
- Bun can run the package and is the package manager used by the InboxTap repository.
- Two available local ports: SMTP
1025and HTTP8025by default.
Run the server
Run without adding a dependency:
bunx inboxtapor:
npx inboxtapThe command stays in the foreground and prints the local SMTP and HTTP addresses. Press Ctrl+C to
stop it.
Install the SDK
Add InboxTap to the project that contains your test suite:
bun add --dev inboxtapor:
npm install --save-dev inboxtapImport the client from the public client subpath:
import { InboxTapClient } from "inboxtap/client";Point your app at InboxTap
Configure the application under test to use the local SMTP listener:
SMTP_HOST=localhost
SMTP_PORT=1025
SMTP_SECURE=false
Keep these values in a development or test environment. InboxTap deliberately does not implement authentication or TLS and should not be exposed to a network.