Previously, we were guessing whether something is optional from the comment (looking for stuff like "defaults to" or "optional"). To remove this error-prone technique, every optional property or argument (but not option) is explicitly marked with "?".
20 lines
475 B
Markdown
20 lines
475 B
Markdown
# class: TestError
|
|
* langs: js
|
|
|
|
Information about an error thrown during test execution.
|
|
|
|
## property: TestError.message
|
|
- type: ?<[string]>
|
|
|
|
Error message. Set when [Error] (or its subclass) has been thrown.
|
|
|
|
## property: TestError.stack
|
|
- type: ?<[string]>
|
|
|
|
Error stack. Set when [Error] (or its subclass) has been thrown.
|
|
|
|
## property: TestError.value
|
|
- type: ?<[string]>
|
|
|
|
The value that was thrown. Set when anything except the [Error] (or its subclass) has been thrown.
|