@api-emulator/coderabbit
v0.2.2
Published
CodeRabbit provides code-review automation APIs for users, seats, roles, review metrics, and audit logs.
Readme
@api-emulator/coderabbit
CodeRabbit provides code-review automation APIs for users, seats, roles, review metrics, and audit logs.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/coderabbit- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@coderabbit/api-emulator.mjs --service coderabbitThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /v1/usersPOST /v1/users/seatsPOST /v1/users/rolesGET /v1/metrics/reviewsGET /v1/audit-logsGET /coderabbit/inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
Use a fixed bearer token or API key in each test. The emulator does not send these credentials to the provider.
Test data
Add repeatable test data to the provider configuration.
coderabbit:
# Add provider-specific seed state here.