跳到正文
cccskills
免费在 GitHub 公开

test

Run tests for Terrae components

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Test Skill

Run tests for Terrae components.

Instructions

  1. Run All Tests

    npm run test:run
    

    This runs vitest in single-run mode.

  2. Run Tests in Watch Mode If the user wants to develop with live feedback:

    npm run test
    

    Note: This runs in watch mode and won't exit automatically.

  3. Run Specific Tests To run tests for a specific component:

    npx vitest run {component-name}
    

    Example: npx vitest run marker

  4. Report Results

    • Show passing/failing test counts
    • For failures, show:
      • Test name
      • Expected vs received values
      • File and line number
  5. Handle Failures If tests fail:

    • Analyze the failure reason
    • Ask if the user wants help fixing the test or the code
    • Show the relevant test file and component code
  6. Test File Location Tests are typically located at:

    • src/registry/map/__tests__/{component}.test.tsx
    • Or alongside components: {component}.test.tsx

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

check

免费

Verify all outputs exist after creating a new component and fix any issues

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

commit

免费

Create standardized git commits following Terrae's conventions

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

docs

免费

Generate or update documentation for Terrae components

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

fix

免费

Systematically fix issues found by /review or reported by the user

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

issue

免费

Read a GitHub issue, summarize it, and create a branch for it

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

lint

免费

Run linting and type checking across the Terrae codebase

中文简介正在准备中。当前显示原文说明。

alamenai/terrae2492026年4月7日 更新

查看 alamenai 的全部技能

报告此技能的问题