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