跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/stacklok/toolhive-studio/testing-api-assertions

Codex Assert Mock API Mutation Payloads in ToolHive Studio

Use the ToolHive Studio test recorder to assert path, method, and payload for a mocked write operation.

中文

Install in Codex

Use the local ToolHive Studio renderer test environment with its mock API setup.

  1. Copy the pinned `.codex/skills/testing-api-assertions/` directory into `.agents/skills/testing-api-assertions/` in the project.
  2. Identify the test in Codex and inspect `renderer/src/common/mocks/node.ts` to confirm the request recorder.

Example task

In a local test, create `demo-group` through the UI. Use `recordRequests()` to find `POST /api/v1beta/groups` and verify the group name in its payload.

What to check

One matching POST is recorded with name `demo-group`, using the mock rather than a live backend.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Should I assert raw requests for list reads too?

Use different mock responses to verify the visible list. Mutation tests can additionally assert the side-effect contract.

Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯