Skip to main content

WireMock Testcontainers for Node.js

Run WireMock in Testcontainers from your Node.js tests, with a typed, fluent API.

New here? Install, then follow the quick start.

Find your task​

I want to…Go to
Serve stubs from files, directories, npm packages or inline JSONRegistering stubs
Point at a file by path, URL, module or packageFile sources
Pin the image or pass WireMock optionsConfiguring the container
Start, wait for, address or stop WireMockContainer lifecycle
Reset stubs, scenarios or the journal between testsTest isolation
Assert what my code sentVerifying requests
Load a WireMock extensionJava extensions, TypeScript extensions
Package an extension for my testsAuthoring extensions
Run tests without DockerRunning without Docker
Fix an errorTroubleshooting
Look up an APIAPI overview, API reference

Background: how it works.