Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

PactumJS review

Free#23 of 33 in API Testing Tools

A focused JavaScript library for API, contract, mock, and integration testing.

6.9/10Editor score
PactumJS6.9 Visit PactumJS

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

PactumJS is a free, open-source Node.js library for testing REST APIs. It is aimed at developers, QA engineers, and SDETs who want one JavaScript-oriented toolkit for API, integration, end-to-end, component, contract, mock, and fuzz testing. Distributed through npm under the MIT License, it fits teams that prefer adding API checks to an existing test-code workflow rather than adopting a separate hosted testing application.

Its strongest area is the range of testing patterns available in one library. PactumJS supports HTTP request construction and response assertions, dependent API calls, request retrying, end-to-end steps with cleanup actions, and component testing for backend services. Contract coverage includes bidirectional testing through flows and interactions, with request and response matching also available for mocks and contract tests. A standalone HTTP/HTTPS mock server extends that scope beyond assertions, while fuzz testing adds another way to examine API behavior.

The ecosystem fit is clear for JavaScript teams: PactumJS is an npm package and integrates with Mocha, Jest, Jasmine, and Cucumber. Its documented focus remains REST APIs and Node.js, so teams working across other protocols or seeking a broad, managed automation platform may need a different approach. There are also no built-in AI features. Choose PactumJS when open-source, code-based testing and contract or mock coverage are priorities; consider an alternative when you need wider protocol coverage or platform-led test management.

PactumJS pros and cons

  • Where it wins
    • HTTP assertions, dependent calls, retries, and end-to-end flows
    • Bidirectional contracts, component testing, mocks, and fuzz testing
    • Integrates with npm, Mocha, Jest, Jasmine, and Cucumber
  • Where it doesn't
    • Focused on REST API testing and Node.js environments
    • No built-in AI features
    • Library-centered rather than a broader managed testing platform

PactumJS fact sheet, pricing and score →

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update