Skip to content

test(nip-11): add integration tests and fix max_filters mapping#527

Merged
cameri merged 2 commits into
cameri:mainfrom
kanishka0411:test/nip-11-integration
Apr 19, 2026
Merged

test(nip-11): add integration tests and fix max_filters mapping#527
cameri merged 2 commits into
cameri:mainfrom
kanishka0411:test/nip-11-integration

Conversation

@kanishka0411
Copy link
Copy Markdown
Contributor

Description

Adds integration tests for the NIP-11 relay information document endpoint, plus a one-line bug fix where max_filters was being populated from maxFilterValues (2500) instead of maxFilters (10).

Related Issue

Fixes #508

Motivation and Context

The root HTTP endpoint had zero integration test coverage. Any regression in NIP-11 response shape, supported NIPs list, or limitation values would go undetected.

How Has This Been Tested?

Ran npm run docker:test:integration - all passed including the new NIP-11 scenarios

Screenshots (if appropriate):

Types of changes

  • Non-functional change (docs, style, minor refactor)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my code changes.
  • I added a changeset, or this is docs-only and I added an empty changeset.
  • All new and existing tests passed.

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 68.472% (+0.2%) from 68.308% — kanishka0411:test/nip-11-integration into cameri:main

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: integration tests for NIP-11 relay information document

3 participants