Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

offstage

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

offstage

Offstage is a HTTP request library, with a focus on **mocking** and **testing**.

latest
Source
npmnpm
Version
4.6.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

TypeScript HTTP Client for faster development and testing

Offstage is a HTTP request library, with a focus on mocking and testing.

You define your mock data once, Offstage then allows you to:

  • Click through your app without a backend
  • Playwright test the production build
  • Verify backend compatibility by auto generating Pact files

Breaking

  • From now on defaults to network mode

Infographic!

Highlights

  • 🚀 Easily define a TypeScript Request API
  • ⚡️ Mock data for development (stripped out of production build)
  • 🎭 Same mock data for Playwright (to test the production build)
  • 🦄 Override mock data (for testing specific scenarios)
  • 🤝 Automatic Pact tests (to verify compatability) (experimental)
  • 🔥 Small footprint (adds less than 5kb to your production build)

Read more and get started on github!

FAQs

Package last updated on 05 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts