Skip to main content

arbitrarySchemaWithValue()

arbitrarySchemaWithValue(): Arbitrary<{ schemaWithMeta: SchemaWithMeta; value: unknown; shouldBeValid: boolean; }>

Experimental

Generates a schema and a corresponding value (valid or invalid).

This is useful for round-trip testing where you need both a schema and a value to test against.


Returns: Arbitrary<{ schemaWithMeta: SchemaWithMeta; value: unknown; shouldBeValid: boolean; }>โ€‹


Sinceโ€‹

2.0.0