function expectOutput()
Returns an assertion for the elements matching the provided filters.
function expectOutput(
select: OutputSelectFilter & {
timeout?: number;
},
...nested: OutputSelectFilter[]
): OutputAssertion;
Notes
- This function returns the same result as expectOutputAsync but without waiting for (new) rendering to complete.
- This function uses TestRenderer.expectOutputAsync(), refer to its documentation for details.
Parameters
- select — A set of output filters to match, including optional timeout (defaults to 200ms)
- nested — Further output filters to match, if any
Return value
A promise that’s resolved to an OutputAssertion instance for matching output, or rejected when a timeout occurs.
