Skip to main content

cgw-testing

Use when writing, changing, or debugging any test in safe-client-gateway - unit (*.spec.ts), integration (*.integration.spec.ts), or e2e - AND whenever a change to production code needs its tests updated, which is nearly every change, even when the request never mentions tests. Covers the builders-plus-faker rule (no literal fixtures), vi.fn() and MockedObject<T> mocking conventions, FakeConfigurationService, the mandatory initTestApplication(app) Fastify harness (never bare app.init()), seeded faker, and what CI actually runs. Triggers on "write a test", "add tests", "test failing", "fixture", "mock", "builder", "spec file", "vitest", and on any casting or typing question whose subject is a spec file ("as unknown in these tests", "as never", "how do I type this mock") - the test-mock cast idiom lives here, not in cgw-best-practices.

跳到安装

来源信息

仓库
safe-global/safe-client-gateway
最近来源活动
2026年8月7日 12:46
检测到的 SKILL.md 语言
英语
星标
50
分支
102

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。