Skip to content

test: cover cron plugin behavior#181

Open
newmattock wants to merge 1 commit into
outerbase:mainfrom
newmattock:codex/cron-plugin-coverage-71
Open

test: cover cron plugin behavior#181
newmattock wants to merge 1 commit into
outerbase:mainfrom
newmattock:codex/cron-plugin-coverage-71

Conversation

@newmattock
Copy link
Copy Markdown

Summary

  • Adds focused Vitest coverage for CronPlugin registration, table initialization, no-task startup behavior, and callback route registration.
  • Covers cron scheduling of the earliest matching tasks, active-task update parameters, and alarm setup.
  • Covers addEvent persistence/rescheduling plus callback fanout and ExecutionContext.waitUntil handling for async event callbacks.

Refs #71
/claim #71

Tests

  • pnpm exec vitest --run plugins/cron/index.test.ts -> 5 tests passed
  • pnpm exec prettier --check plugins/cron/index.test.ts -> passed
  • git diff --check -> passed
  • pnpm exec vitest --run -> existing src/rls/index.test.ts baseline failures remain (4 RLS policy WHERE-clause expectations fail); the new cron test passes in that full run.

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