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
- class TestCaseA class that represents a single test case, part of a TestScope.
- fail(error?)Fails this test case immediately with the provided error.