method
test.Expect.getState
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
- currentTestName?: string
The enclosing
describeblocks' names and the current test's name, joined by a space. - expectedAssertionsNumber: null | number
The number passed to
expect.assertions(), if it was called in the current test.