tests-common
TDD practices and test utilities for suite-common packages, including Red-Green-Refactor workflow and @suite-common/test-utils usage. Use when writing tests for suite-common packages.
适合你,如果你在维护 suite-common 包并需要遵循 TDD 实践。
/ 通过 npx 安装 校验哈希
npx oh-my-skill add trezor/trezor-suite/tests-common/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- trezor/trezor-suite/tests-common/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify trezor/trezor-suite/tests-common安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1021GitHub stars
~383上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 ab48a1e · 表述以原文为准它做什么
在编写 suite-common 包代码时,Claude 会遵循测试驱动开发流程:先写测试(红),再写实现代码(绿),最后重构(重构),并使用 @suite-common/test-utils 工具。
什么时候触发
当用户要求为 suite-common 包编写测试或实现功能时触发,尤其是涉及 React hooks 的测试。
装好后可以这样说
Claude 会先写失败测试,再写实现代码。
Claude 会验证测试流程。
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…