Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Depending on how you want to check the call, you might want to use a spying library (sinon, jest.fn etc). Check out strong-mock if you're using TypeScript.
Use mock service workers to intercept network requests and reply with a predefined response you can test against.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Partial: how not to mock the whole world
- [AskJS] Can we talk about Stubs, Spies and Mocks in JavaScript and what a mess they are?
- How to get started with Testing in React TypeScript
- Do tests without seeing the code!
- Announcing "@mswjs/data"—data modeling library for testing JavaScript applications