testing/adversarial_404.ts view source
(options: AdversarialTestOptions): void import {describe_adversarial_404} from '@fuzdev/fuz_app/testing/adversarial_404.js'; Generate adversarial 404 response validation tests.
For each route with params and a 404 definition of its own in errors:
- Creates a stub handler returning 404 with the first such definition's code
- Fires a request with valid-format params (nil UUIDs for UUID params)
- Validates response status is 404
- Validates the code is one the route's error map (resolve_route_error_map) declares at 404, and the body parses against its 404 (assert_error_schema_valid)
options
returns
void