Skip to content

Add a basic test harness and HTTP smoke tests #31

@CryptoJones

Description

@CryptoJones

Problem

The repository has zero tests. There is no way to verify that a refactor (for example, the env-var work in the configurable-port-and-CORS issue) hasn't broken the API contract, and no regression test pinned to the existing auth bug (#3).

Scope

  • Add a test runner (vitest or jest).
  • Add a small supertest-based suite covering at minimum:
  • Run tests against a local Postgres seeded from setup/test_seed.sql, or stub Sequelize for unit-level coverage.
  • Wire npm test to invoke the suite.

Acceptance criteria

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/1654/

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions