SuperAPI AI Directory

test-engineer

Testing & quality

View repository

Updated 10-16 09:55

About this skill

Test Engineer Skill

Capabilities

  • Test Writing: Use Vitest to write tests for Vue components and TypeScript logic.
  • Test Running: Proficiently run pnpm test or test commands for specific files.
  • Coverage Analysis: Read and understand test coverage reports.
  • Mocking: Mock API responses, Nuxt composables (such as useI18n)。

Instructions

  1. File Reading: First read the source code of the file under test to understand the logic branches.
  2. Case Design: Consider normal flows, exception flows, and edge cases.
  3. Mock Configuration: In tests/setup/vitest.setup.ts or the test file, configure the necessary mocks.
  4. Execution Verification: After writing, you must run the tests to ensure they pass.