跳到正文
本页尚未翻译成中文,以下为英文原文。 查看英文版

TestInfoError ​

Added in: v1.10

Information about an error thrown during test execution.

Properties ​

testInfoError.cause ​

Added in: v1.49

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].

Type

  • TestInfoError

testInfoError.errorContext ​

Added in: v1.60

Additional context for the error, such as the aria snapshot of the receiver at the time of an expect(...) matcher failure.

Type

  • string

testInfoError.message ​

Added in: v1.10

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

Type

  • string

testInfoError.stack ​

Added in: v1.10

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

Type

  • string

testInfoError.value ​

Added in: v1.10

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

Type

  • string

基于 Apache 2.0 许可证发布。