‹ 首页

testing

@redis · 收录于 5 天前 · 上游提交 5 天前

Unit/integration testing standards for RedisInsight using Jest and Testing Library: test structure, the `renderComponent` helper, faker for test data, mocking patterns, and `waitFor` instead of fixed time waits. Use when writing or modifying any `*.spec.ts` or `*.spec.tsx` file, when adding component or slice tests, when debugging flaky tests, or when the user mentions jest, testing library, faker, or test patterns.

适合你,如果需要在 RedisInsight 项目中编写或修改测试用例

/ 通过 npx 安装 校验哈希
npx oh-my-skill add redis/redisinsight/testing
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- redis/redisinsight/testing
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify redis/redisinsight/testing
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
8640GitHub stars
~2.6K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 32fcfa5 · 表述以原文为准
它做什么

Claude 会按照 RedisInsight 项目的测试标准编写或修改测试,包括使用 AAA 模式、faker 生成测试数据、renderComponent 辅助函数、waitFor 异步等待,避免固定超时。

什么时候触发

当用户编写或修改 `*.spec.ts` 或 `*.spec.tsx` 文件,添加组件/切片测试,调试不稳定测试,或提及 jest、testing library 等关键词时触发。

装好后可以这样说
Claude 会用 waitFor 或 findBy 查询。

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。