testing/attack_surface.ts view source
AdversarialTestOptions import type {AdversarialTestOptions} from '@fuzdev/fuz_app/testing/attack_surface.js'; Options for adversarial test runners (auth enforcement and input validation).
build
Build the app surface bundle (surface + route specs + middleware specs).
type (): AppSurfaceSpec
roles
All roles in the app (e.g. ['admin', 'keeper']).
type string[]
skip_routes?
Routes to skip, in 'METHOD /path' form (the surface key) — the escape
hatch every sibling suite carries. Reach for it only when a route
cannot be driven generically at all (a handler needing real seeded
state, a path segment no schema can describe); a route whose params
merely have a format is handled by the synthesizer.
type string[]
param_values?
Path param values for specific routes ('METHOD /path' → param name →
value), used before the generated ones — needed for a {re} param whose
pattern refuses the generated value. See RouteParamValues.
type Readonly<Record<string, Readonly<Record<string, string>>>>