PolicyTestHarnessOptions
Defined in: src/policies/sdk/testing.ts:19
Properties
Section titled “Properties”adapter?
Section titled “adapter?”
optionaladapter:TestAdapter
Defined in: src/policies/sdk/testing.ts:30
Custom adapter to use. If not provided, a TestAdapter is created.
gatewayName?
Section titled “gatewayName?”
optionalgatewayName:string
Defined in: src/policies/sdk/testing.ts:28
Gateway name injected into context. Default: "test-gateway".
optionalpath:string
Defined in: src/policies/sdk/testing.ts:26
Route path pattern for the test app. Default: "/*".
upstream?
Section titled “upstream?”
optionalupstream:MiddlewareHandler
Defined in: src/policies/sdk/testing.ts:24
Custom upstream handler. Receives the Hono context after the policy
runs. Default: returns { ok: true } with status 200.