Docs (4.0.0)
class TestCase method

getError

Returns the error that occurred during the test run, if any.

getError(): unknown

Notes

The error may have been thrown directly from the test function, or set using TestCase.fail(). The error may also have been the result of a timeout condition.

Related