I will add five reliable automated tests for one existing Node.js API endpoint using Jest or Vitest.
This entry package is for one route and one clear behavior. Depending on the endpoint, the test set can cover:
- one successful request;- invalid or missing input;- an authentication or authorization failure;- a dependency or service error;- one important edge case agreed before work begins.
You receive:
- five readable automated tests;- sanitized fixtures and mocks;- a concise note explaining what each test proves;- the exact command needed to run the tests;- one revision for corrections within the agreed route and behavior.
The tests will follow the repository's existing structure where practical. I can work with Express, Fastify, NestJS, or a similar Node/TypeScript service when the route can be run locally with test data.
This package does not include production deployment, a full test-suite rewrite, browser testing, load testing, database migration, or more than one endpoint. Those can be quoted separately after the first delivery.
I do not need production credentials, private keys, seed phrases, live funds, or customer data.