> ## Documentation Index
> Fetch the complete documentation index at: https://docs.igboapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing

> Learn how to test the Igbo API

## Frontend

Frontend tests focus specifically on the Igbo API homepage using Cypress. First, run:

```bash theme={null}
npm run build
```

To watch frontend tests, run:

```bash theme={null}
npm run jest:frontend
```

## Backend

Backend tests use both locally stored MongoDB and JSON data.

In one terminal, star the local database:

```bash theme={null}
npm run start:database
```

In another terminal, run the backend tests:

```bash theme={null}
npm run jest:backend
```
