·write-tests
</>

write-tests

使用 TestBuilder 模式为 Syncpack 编写测试。在添加命令、验证逻辑或任何新功能的测试时使用。涵盖 TestBuilder API、断言模式和常见测试场景。

10安装·0热度·@jamiemason

安装

$npx skills add https://github.com/jamiemason/syncpack --skill write-tests

如何安装 write-tests

通过命令行快速安装 write-tests AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/jamiemason/syncpack --skill write-tests
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:jamiemason/syncpack。

SKILL.md

查看原文

Guide for writing tests in Syncpack using the TestBuilder pattern.

Always use TestBuilder — Never manually construct Context in tests.

| Context { ... } | TestBuilder::new()... | | .build() then check states | .buildandvisitpackages() | | ctx.instances[0] | .find(\|i\| i.dependency.name == "react") |

使用 TestBuilder 模式为 Syncpack 编写测试。在添加命令、验证逻辑或任何新功能的测试时使用。涵盖 TestBuilder API、断言模式和常见测试场景。 来源:jamiemason/syncpack。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/jamiemason/syncpack --skill write-tests
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-10

Browse more skills from jamiemason/syncpack

快速解答

什么是 write-tests?

使用 TestBuilder 模式为 Syncpack 编写测试。在添加命令、验证逻辑或任何新功能的测试时使用。涵盖 TestBuilder API、断言模式和常见测试场景。 来源:jamiemason/syncpack。

如何安装 write-tests?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jamiemason/syncpack --skill write-tests 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/jamiemason/syncpack

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-25