2021-07-23 04:56:36 +02:00
# class: TestError
2022-07-06 02:24:50 +02:00
* since: v1.10
2021-07-23 04:56:36 +02:00
* langs: js
Information about an error thrown during test execution.
2024-10-29 00:01:59 +01:00
## property: TestError.cause
* since: v1.49
- type: ?< [TestError]>
Error cause. Set when there is a [cause ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause ) for the error. Will be `undefined` if there is no cause or if the cause is not an instance of [Error].
2021-07-23 04:56:36 +02:00
## property: TestError.message
2022-07-06 02:24:50 +02:00
* since: v1.10
2022-04-07 04:02:10 +02:00
- type: ?< [string]>
2021-07-23 04:56:36 +02:00
2022-04-07 04:02:10 +02:00
Error message. Set when [Error] (or its subclass) has been thrown.
2021-07-23 04:56:36 +02:00
## property: TestError.stack
2022-07-06 02:24:50 +02:00
* since: v1.10
2022-04-07 04:02:10 +02:00
- type: ?< [string]>
2021-07-23 04:56:36 +02:00
2022-04-07 04:02:10 +02:00
Error stack. Set when [Error] (or its subclass) has been thrown.
2021-07-23 04:56:36 +02:00
## property: TestError.value
2022-07-06 02:24:50 +02:00
* since: v1.10
2022-04-07 04:02:10 +02:00
- type: ?< [string]>
2021-07-23 04:56:36 +02:00
2022-04-07 04:02:10 +02:00
The value that was thrown. Set when anything except the [Error] (or its subclass) has been thrown.
2022-12-21 18:36:59 +01:00
## property: TestError.location
* since: v1.30
- type: ?< [Location]>
Error location in the source code.
2023-03-29 23:07:14 +02:00
## property: TestError.snippet
* since: v1.33
- type: ?< [string]>
Source code snippet with highlighted error.