Opportunities/Add unit tests for authentication API routes
Open Source Active listing 7 hr ago

Add unit tests for authentication API routes

ravindu2012/retail-smart-erp

Remotevia github
testingretail-smart-erp

About this opportunity

Updated 7 hr ago

## Description

The authentication API routes in `src/app/api/auth/` currently lack unit tests. Adding tests will improve code reliability and make it safer for contributors to make changes. ## Scope

  • Add Jest tests for login, register, and session API routes
  • Test validation errors (missing fields, invalid email, wrong password)
  • Test successful authentication flow
  • Test tenant slug validation ## Getting Started
  • Tests go in `__tests__/` or alongside the route files as `*.test.ts`
  • Run tes

Ready to apply?

You'll be taken to the employer's site to complete your application.

Apply now Back to listings

Never miss a listing like this

Sign up free and get personalised job alerts straight to your inbox.

Join free — it takes 30 seconds

More Open Source opportunities