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.
Source facts
- Repository
- safe-global/safe-client-gateway
- Last source activity
- August 7, 2026 at 12:46
- Detected SKILL.md language
- English
- Stars
- 50
- Forks
- 102
Install options
The review-first prompt is selected by default. You can switch to a direct command or download a local copy.
Review the source files
Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.