Skip to content

Conversation

@karilint
Copy link
Contributor

@karilint karilint commented Jan 7, 2026

Motivation

  • Remove stale duplicate API test files under src/api-tests to prevent duplicate test execution during CI.
  • Ensure the canonical API tests remain located under backend/src/api-tests for a single source of truth.
  • Keep test surface area minimal to reduce flakiness and maintenance overhead.

Description

  • Deleted the duplicate test file src/api-tests/species/create.test.ts that mirrored the canonical backend test.
  • No changes were made to authorization, routes, or production code.
  • This change is limited to test cleanup under the src/api-tests path.

Testing

  • Ran npm run lint and it completed successfully without new ESLint errors.
  • Ran npm run tsc and TypeScript compilation (--noEmit) succeeded.
  • Ran npm run lint:cypress and it completed successfully for Cypress spec linting.

Codex Task

- Increase default connection limit from default to 50 for better parallel test handling
- Add acquireTimeout: 30000ms for connection acquisition
- Add idleTimeout: 30000ms for idle connection management
- Add minimumIdle: 0 to allow pool to scale down when not in use
Update assertion on lines 36-37 to use more idiomatic Jest matcher
Change test to properly store and assert the find result instead of testing the resultLocality existence.
- Add createTestUser function for creating test users with customizable options
- Add getAuthToken function for generating JWT tokens
- Add cleanupTestUser and cleanupTestUsers functions for test cleanup
- Add createAuthenticatedTestUser helper for easy authenticated user creation
- Add utility functions for finding and updating test users
- Include bulk cleanup and Prisma disconnect utilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants