Skip to main content

class: TestError

Added in: v1.10

Languages: JavaScript

Information about an error thrown during test execution.

property: TestError.cause​

Added in: v1.49

  • type: ?<TestError>

Error cause. Set when there is a cause for the error. Will be undefined if there is no cause or if the cause is not an instance of Error.

property: TestError.message​

Added in: v1.10

  • type: ?<string>

Error message. Set when Error (or its subclass) has been thrown.

property: TestError.stack​

Added in: v1.10

  • type: ?<string>

Error stack. Set when Error (or its subclass) has been thrown.

property: TestError.value​

Added in: v1.10

  • type: ?<string>

The value that was thrown. Set when anything except the Error (or its subclass) has been thrown.

property: TestError.location​

Added in: v1.30

  • type: ?<Location>

Error location in the source code.

property: TestError.snippet​

Added in: v1.33

  • type: ?<string>

Source code snippet with highlighted error.