Write ApiClient
/WriteApiClientTry it in
When to reach for this
Deciding what to test and proving it works.
- Test plans and the cases that actually catch regressions
- Writing the tests, mocks and fixtures to go with them
- Reproducing and narrowing a flaky or failing test
- Area
- TestWriting
- Effort
- No blanks to fill
- Difficulty
- advanced
- Niche
- 72 commands here
Closest commands in the same niche
Fresh and trending
Ordered by the catalogue's own addedAt and popularity fields — not by live traffic, which SlashAI never sees. Some addedAt values in the source data sit in the future, so treat “newest” as newest-in-catalogue rather than as a verified publication date.
Hashtags
What it does
Write thorough unit tests for an api client module — e.g. an http client wrapping fetch with retry logic.
How to use
Paste the function or module and note the edge cases you worry about. Bring an api client module — for example an http client wrapping fetch with retry logic. You get back a unit test suite covering the main paths and edge cases.
Example
/WriteApiClient Input: an http client wrapping fetch with retry logic Ask: Paste the function or module and note the edge cases you worry about. Return: a unit test suite covering the main paths and edge cases
Run it in
Paste the command, then attach the file or text on the same message - it handles mixed input well.
How did this land?
Only you see this — stored on this devicePaste this command into your AI tool, then come back and say how it went. Your answer stays in this browser — SlashAI has no server and no account, so there is nothing to send it to and nobody who would read it.
You might also like
/SnapshotApiClient
Add snapshot tests for an api client module — e.g. an http client wrapping fetch with retry logic.
/ReviewApiClient
Review test quality and gaps in an api client module — e.g. an http client wrapping fetch with retry logic.
/MockApiClient
Add proper mocks and fixtures for an api client module — e.g. an http client wrapping fetch with retry logic.
/ParametrizeApiClient
Convert repetitive tests into parametrized cases for an api client module — e.g. an http client wrapping fetch with retry logic.