Skip to content

Test that configuration rejects a missing contract id #149

Description

@Glittersup

Summary

Starting without a contract id would leave the indexer polling for events from nothing. Configuration is expected to fail fast, and that path is untested.

Acceptance criteria

  • A test asserts configuration loading fails when the contract id is absent.
  • The error names the missing variable.
  • The suite still passes.

Getting started

Fork this repository, clone your fork, and add this repo as upstream:

git clone https://github.com/<your-username>/tricklepay-backend.git
cd tricklepay-backend
git remote add upstream https://github.com/TricklePay/tricklepay-backend.git

Create a branch for this issue:

git checkout -b test/issue-149

Suggested commit message:

test: cover the missing contract id case

Run npm run typecheck, npm test, and npm run build before opening a pull request and linking this issue.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions