Skip to main content

Module context

Module context 

Source
Expand description

Test context builders for all FORGE function types.

Each test context provides:

  • Authentication configuration (user ID, roles, claims)
  • Optional database pool for integration tests
  • Mocking capabilities (HTTP, job dispatch, workflow dispatch)
  • Context-specific fields (job_id, attempt, cron schedule, etc.)

Structsยง

TestCronContext
Test context for cron functions.
TestCronContextBuilder
Builder for TestCronContext.
TestDaemonContext
Test context for daemon functions.
TestDaemonContextBuilder
Builder for TestDaemonContext.
TestJobContext
Test context for job functions.
TestJobContextBuilder
Builder for TestJobContext.
TestMutationContext
Test context for mutation functions.
TestMutationContextBuilder
Builder for TestMutationContext.
TestProgressUpdate
Progress update recorded during testing.
TestQueryContext
Test context for query functions.
TestQueryContextBuilder
Builder for TestQueryContext.
TestWebhookContext
Test context for webhook functions.
TestWebhookContextBuilder
Builder for TestWebhookContext.
TestWorkflowContext
Test context for workflow functions.
TestWorkflowContextBuilder
Builder for TestWorkflowContext.