Skip to content

Implement Integration Tests for PostgreSQL Triggers #618

Description

@Fatimasanusi

Our database relies on PostgreSQL triggers to automatically update the updated_at timestamps and calculate moving averages. These need dedicated integration tests to ensure data integrity during schema migrations.

Acceptance Criteria:

  • Create a Jest test suite that connects to an ephemeral PostgreSQL container.
  • Write tests verifying that row modifications successfully fire the update_timestamp trigger.
  • Write tests verifying the moving average calculation trigger behaves correctly on trade inserts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions