migrate-to-shoehorn
Installation
SKILL.md
迁移到 Shoehorn (Migrate to Shoehorn)
为什么用 shoehorn?
shoehorn 让你在测试中传递部分数据,同时保持 TypeScript 类型安全。它用类型安全的替代方案替换 as 断言。
shoehornlets you pass partial data in tests while keeping TypeScript happy. It replacesasassertions with type-safe alternatives.
仅限测试代码。 永远不要在生产代码中使用 shoehorn。
Test code only. Never use shoehorn in production code.
测试中使用 as 的问题:
Problems with
asin tests: