testing-api-assertions

Official

Verify API calls in tests with confidence.

Authorstacklok
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Verify API requests in tests to ensure correct backend interactions.

Core Features & Use Cases

  • Request verification: Assert that tests trigger the expected API calls (method, path, and payload) for create, update, or delete actions.
  • End-to-end mutation checks: Validate that UI actions produce the intended backend mutations and side effects.
  • Use Case: In a UI test, verify that submitting a form results in a POST to /api/v1beta/resources with the expected payload.

Quick Start

In your test setup, enable request recording with the testing utility (e.g., recordRequests()), perform the user action, then assert that the captured requests include the expected POST/PUT/DELETE to the correct endpoints with the right payload.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: testing-api-assertions
Download link: https://github.com/stacklok/toolhive-studio/archive/main.zip#testing-api-assertions

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.