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ยง

TestActionContext
Test context for action functions.
TestActionContextBuilder
Builder for TestActionContext.
TestCronContext
Test context for cron functions.
TestCronContextBuilder
Builder for TestCronContext.
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.
TestWorkflowContext
Test context for workflow functions.
TestWorkflowContextBuilder
Builder for TestWorkflowContext.