AgentSkillsCN

react-tanstack-testing

使用TanStack生态系统(Query、Router、Table、Form)结合Vite和Vitest对React应用进行专项测试。适用于测试React + TanStack应用、模拟服务器状态、测试路由或验证查询行为时使用。触发词:‘TanStack测试’、‘React Query测试’、‘测试TanStack’、‘模拟查询’、‘路由测试’。

SKILL.md
--- frontmatter
name: react-tanstack-testing
description: "Specialized testing for React applications using TanStack ecosystem (Query, Router, Table, Form) with Vite and Vitest. Use when testing React + TanStack apps, mocking server state, testing router, or validating query behavior. Triggers: 'TanStack testing', 'React Query testing', 'test TanStack', 'mock query', 'router test'."
# v2.0.43: Skills to auto-load for React TanStack testing
skills:
  - tanstack-patterns
  - testing-strategy
  - code-style
# v2.0.74: Tools for testing work
allowed-tools:
  - Read
  - Write
  - MultiEdit
  - Bash
  - Grep
  - Glob
  - TodoWrite

React TanStack Testing Skill

Specialized testing for React applications using TanStack ecosystem (Query, Router, Table, Form) with Vite and Vitest.

Description

Comprehensive testing patterns for modern React with TanStack libraries including server state management, routing, and data handling.

What's Included

  • Examples: TanStack Query tests, Router tests, Form validation
  • Reference: Testing patterns, mocking strategies
  • Templates: Test suites for TanStack components
  • Checklists: React testing best practices

Use When

  • Testing React + TanStack Query applications
  • Testing complex routing with TanStack Router
  • Validating server state management

Related Agents

  • react-tanstack-tester
  • test-generator

Skill Version: 1.0