Skip to content

test: add stats plugin coverage#214

Open
sureshchouksey8 wants to merge 1 commit into
outerbase:mainfrom
sureshchouksey8:bounty/stats-plugin-tests
Open

test: add stats plugin coverage#214
sureshchouksey8 wants to merge 1 commit into
outerbase:mainfrom
sureshchouksey8:bounty/stats-plugin-tests

Conversation

@sureshchouksey8
Copy link
Copy Markdown

@sureshchouksey8 sureshchouksey8 commented May 14, 2026

/claim #71

Purpose

Adds focused Vitest coverage for the stats plugin slice from #71.

Tasks

  • Cover initialization and internal stats route registration.
  • Cover middleware capture of request config and data source.
  • Cover non-admin rejection before statistics are requested.
  • Cover admin stats responses with registry plugin names.
  • Cover the admin response when data source stats are unavailable.

Verify

  • npx pnpm@9.15.4 vitest run plugins/stats/index.test.ts passes locally.
  • npx pnpm@9.15.4 exec prettier --write plugins/stats/index.test.ts completed after formatting.
  • git diff --check passes locally.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant