offstage
TypeScript icon, indicating that this package has built-in type declarations

4.6.1 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i offstage

Weekly Downloads

8

Version

4.6.1

License

ISC

Unpacked Size

131 kB

Total Files

100

Last publish

Collaborators

  • livinglogicnl