method
test.Expect.setState
): void;
Merges state into the object that Expect.getState returns.
assertionCalls, expectedAssertionsNumber and isExpectingAssertions are the counters behind expect.assertions() and expect.hasAssertions(). currentTestName and testPath can't be changed.
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.