PactumJS
PactumJS: A focused JavaScript library for API, contract, mock, and integration testing. Ranked #23 of 33 in API Testing Tools by our editors (6.9/10); pricing: Free plan; best for javaScript teams needing contract and mock testing.
At a glance
- Editor score6.9 / 10
- PricingFree plan
- Best forJavaScript teams needing contract and mock testing
- Free planYes
- Paid fromFree
- Facts checked21 Sep 2026

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
Our verdict on PactumJS
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.
Your product? Our editors can test PactumJS in depth and publish a review, labelled as paid · from $149/mo →
PactumJS pricing
PactumJS fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| GraphQL support | Yes |
| SOAP support | Not verified |
| Scheduled runs | Not verified |
| CI/CD integration | Yes |
| Mock server | Yes |
| Contract testing | Yes |
| Included requests | Not verified |
| Deployment | Self-hosted |
| Support | Community, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 3 integrations: Mocha, Jest, Cucumber |
| Pricing | Free plan |
| Website | pactumjs.github.io |
| Facts checked | 21 Sep 2026 |
PactumJS integrations
PactumJS lists 3 integrations on its own site.
- Mocha
- Jest
- Cucumber
Alternatives to PactumJS
- PostmanA mature API test platform with broad protocol support and a wide feature set.9.3
- ApidogA broad API toolkit for teams that need design, testing, automation, and documentation together.9.2
- SoapUIA broad, free API testing desktop tool for functional, contract, performance, and load work.9.0
See all PactumJS alternatives →
Used PactumJS? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used PactumJS for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
PactumJS is listed in our API Testing Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/pactumjs/"><img src="https://www.itechguides.com/best/badge/pactumjs.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
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



