method

test.Expect.getState

getState(): ExpectState & Record<string, unknown>;

Returns expect's state for the running test, plus anything passed to Expect.setState. Every call returns the same object, kept up to date.

Referenced types

interface ExpectState