Interface for asynchronous executor functions created by expectAsync.it().
ExpectItExecutorAsync functions are the async equivalent of
ExpectItExecutor, designed for asynchronous assertion contexts. They
return Promises and are marked with the same internal symbol for
identification. These executors can be embedded within 'to satisfy'
patterns for async validation scenarios.
Example
constisAsyncStringExecutor=expectAsync.it('to be a string'); // isAsyncStringExecutor is an ExpectItExecutorAsync<z.ZodString>
// Used within async satisfy patterns awaitexpectAsync({ name:'Alice'},'to satisfy',{ name:isAsyncStringExecutor,// Async validation that name is a string });
Interface for asynchronous executor functions created by
expectAsync.it()
.ExpectItExecutorAsync
functions are the async equivalent of ExpectItExecutor, designed for asynchronous assertion contexts. They returnPromise
s and are marked with the same internal symbol for identification. These executors can be embedded within'to satisfy'
patterns for async validation scenarios.Example
See