testing/adversarial_input.ts

Adversarial input validation testing for route specs.

Fires the payloads adversarial_input_cases.ts generates against a test app and asserts 400 responses before handlers are reached, each with a code the route's own error map declares at 400 and a body its schema there accepts.

view source

Declarations
#

describe_adversarial_input
#

testing/adversarial_input.ts view source

(options: AdversarialTestOptions): void import {describe_adversarial_input} from '@fuzdev/fuz_app/testing/adversarial_input.js';

Generate adversarial input validation test suites.

Tests input body validation and params validation for all routes. Uses correct auth credentials so auth guards pass and validation middleware is actually exercised.

options

returns

void

Depends on
#

Imported by
#