nowfound

Life & fun · May 20, 2015

Stubby – better client side mocking of HTTP Requests

Stubby is a small library for stubbing client-side AJAX requests, primarily designed for use in front end tests.

Stubby – better client side mocking of HTTP Requests launched on May 20, 2015 with 5 votes, #1,831 of 3,670 launches that month and more than 50% of that year's launches. The site was still online in September 2026, 11 years on.

What it does

Stop accepting high card fees and failure rates. Accept Pay by Bank. Today we're open sourcing Stubby , a small library for stubbing client-side AJAX requests, primarily designed for use in front end tests. Stubby lets your implementation code make real HTTP requests which are intercepted just before they hit the network. This keeps your tests fast and easier to work with. Any GET request to /users will be matched to the above stub, and ['jack', 'iain'] will be returned. It is possible to match requests against headers, the request body and query params. The Stubby README fully documents the functionality Stubby provides. The repository also includes examples of tests that use Stubby. To…from gocardless.com

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, May 2015

the whole month →
  • Pexels 2.0▲1,725

    The best free stock photos in one place

    Work · 2015 · pexels.com

  • Submit.co▲1,092

    Find where to get press coverage for your startup

    Life & fun · 2015 · submit.co

  • Tesla home battery

    Life & fun · 2015 · tesla.com

  • Lily▲865

    A drone with a camera that follows you. Throw it in the air.

    Life & fun · 2015 · lily.camera

  • The fastest way to schedule a one-to-one meeting

    Work · 2015 · sunrise.am

  • TP

    Life & fun · 2015 · ephemeralp2p.durazo.us