API routes at /api/checkin, api/checkout, and /api/register are stable, but there are no testing for them yet.
Instructions
Pull the latest changes from the develop branch.
Start the server by running npm run dev (if necessary, navigate to the src/ folder and run npm ci)
Update the route.test.ts files in the aforementioned folder. Ensure all possible cases from the original routes are covered and include detailed comments for clarity. Your code formatting will serve as a reference for other test suites.
Submit a pull request and tag @dangminhduc1101 for review.
Problem
API routes at
/api/checkin
,api/checkout
, and/api/register
are stable, but there are no testing for them yet.Instructions
develop
branch.npm run dev
(if necessary, navigate to thesrc/
folder and runnpm ci
)route.test.ts
files in the aforementioned folder. Ensure all possible cases from the original routes are covered and include detailed comments for clarity. Your code formatting will serve as a reference for other test suites.