AgentSkillsCN

test-frontend

在用户想要改进测试断言,或提及“/test-review”命令时,可将松散的验证(contains、isNotNull、isNotEmpty)替换为严格的验证(对解析后的字段使用isEqualTo)。在用户想要提升测试断言,或提及“/test-review”命令时使用此功能。

SKILL.md
--- frontmatter
name: test-frontend
description: Run frontend Vitest tests. Use when user wants to run frontend unit tests or mentions /test-frontend command.

Run Frontend Tests

Action

All tests:

bash
cd frontend && npx vitest run

With argument (test filter):

bash
cd frontend && npx vitest run {argument}

Examples

  • skill="test-frontend" - run all frontend tests
  • skill="test-frontend", args="registration.logic" - run registration logic tests
  • skill="test-frontend", args="registration.api" - run registration API tests
  • skill="test-frontend", args="login" - run all login-related tests

Output

Report the test results from output.