Options
All
  • Public
  • Public/Protected
  • All
Menu

Message associated with the test state. Can be linked to a specific source range -- useful for assertion failures, for example.

Hierarchy

  • TestMessage

Index

Methods

Constructors

Properties

Methods

Static diff

  • Creates a new TestMessage that will present as a diff in the editor.

    Parameters

    • message: string | MarkdownString

      Message to display to the user.

    • expected: string

      Expected output.

    • actual: string

      Actual output.

    Returns TestMessage

Constructors

constructor

Properties

message

message: string | MarkdownString

Human-readable message text to display.

Optional expectedOutput

expectedOutput: string

Expected test output. If given with actualOutput, a diff view will be shown.

Optional actualOutput

actualOutput: string

Actual test output. If given with expectedOutput, a diff view will be shown.

Optional location

location: Location

Associated file location.

Generated using TypeDoc