Skip to content

test(cron): add Vitest unit tests for cron plugin (fixes #71) - #327

Open
GabrielHFGoncalez wants to merge 1 commit into
outerbase:mainfrom
GabrielHFGoncalez:feature/cron-unit-tests
Open

GabrielHFGoncalez wants to merge 1 commit into
outerbase:mainfrom
GabrielHFGoncalez:feature/cron-unit-tests

Conversation

@GabrielHFGoncalez

Copy link
Copy Markdown

🧪 Vitest Unit Test Suite for plugins/cron

Contributes to #71 by adding comprehensive Vitest unit tests for the plugins/cron plugin.

📦 Test Coverage

  • Plugin Configuration: Verifies plugin identification (starbasedb:cron), path prefix (/cron), and authentication requirements.
  • Event Listeners (on()): Validates listener registration for periodic scheduled task dispatches.
  • Payload Emission (emit()): Tests synchronous payload distribution across single and multiple subscriber functions.

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.

1 participant