route-tester

Test Express.js HTTP API routes with TypeScript across unit, integration, and end-to-end methods.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/michelve/hugin-cowork --skill route-tester-michelve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: route-tester
Source: https://github.com/michelve/hugin-cowork/tree/main/skills/route-tester
Command: npx skills add https://github.com/michelve/hugin-cowork --skill route-tester-michelve

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and examples (resource) components.

What problem does it solve?

This Skill helps you thoroughly test your HTTP API routes, ensuring they function correctly under various conditions, including authentication and integration scenarios.

Core Features & Use Cases

  • Comprehensive Testing: Covers unit, integration, and end-to-end testing strategies for API routes.
  • Authentication Validation: Provides patterns for testing JWT cookies, bearer tokens, and other authentication flows.
  • Use Case: You've just implemented a new set of user management endpoints. Use this Skill to write integration tests that verify creating, reading, updating, and deleting users, including testing the JWT authentication for these operations.

Quick Start

Use the route-tester skill to write integration tests for the '/api/users' endpoint, covering GET, POST, PUT, and DELETE methods.

Frequently Asked Questions about route-tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Express.js API routes with authentication flows?

To test Express.js API routes with authentication, you can use patterns for validating JWT cookies and bearer tokens. This includes setting up integration tests that verify endpoint responses and error handling under authenticated conditions.

What is the best way to write integration tests for HTTP API endpoints?

The best way to write integration tests for HTTP API endpoints is to cover GET, POST, PUT, and DELETE methods comprehensively. This ensures your routes function correctly for creating, reading, updating, and deleting resources during end-to-end testing.

Can I use this for TypeScript API testing and response validation?

Yes, you can use this for TypeScript API testing and response validation. It provides specific guidance for testing HTTP API routes and endpoints built with Express.js and TypeScript, including detailed test setup and teardown strategies.

How do I handle test setup and teardown for HTTP route testing?

Handling test setup and teardown for HTTP route testing involves using provided patterns to establish test environments and clean them up afterward. This ensures isolated unit, integration, and end-to-end testing of your API endpoints.

Why does my API route testing fail for protected endpoints?

API route testing for protected endpoints often fails due to improper authentication validation. You need specific strategies for testing JWT cookies and bearer tokens to ensure your error handling and authentication flows are correctly verified.

Does route testing work for end-to-end user management endpoints?

Yes, route testing works for end-to-end user management endpoints. You can write integration tests that verify creating, reading, updating, and deleting users, including testing the JWT authentication required for these operations.