Skip to content

[codex] add cron utility tests#186

Open
treydoe1 wants to merge 1 commit into
outerbase:mainfrom
treydoe1:codex/add-cron-utils-tests
Open

[codex] add cron utility tests#186
treydoe1 wants to merge 1 commit into
outerbase:mainfrom
treydoe1:codex/add-cron-utils-tests

Conversation

@treydoe1
Copy link
Copy Markdown

Summary

/claim #71

Adds focused Vitest coverage for the cron plugin utility helpers:

  • verifies valid cron expressions can be parsed
  • verifies invalid cron expressions throw
  • verifies next execution time calculation for a same-day schedule
  • verifies next execution time rolls over to the following day after the scheduled time has passed

Validation

  • pnpm exec vitest run plugins/cron/utils.test.ts

Notes

I also ran the full test suite locally with npx vitest run. The new cron tests passed, but the full suite currently has unrelated pre-existing failures in src/rls/index.test.ts where RLS policy injection expectations receive unchanged SQL.

@treydoe1 treydoe1 marked this pull request as ready for review May 12, 2026 21:19
@treydoe1
Copy link
Copy Markdown
Author

Screen.Recording.2026-05-12.at.9.51.25.PM.mov

Screen recording attached.

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