The assert
object as provided by the test runner, including the normal methods from
node:assert
plus extras for dealing with snapshots.
The mock
object as provided by the test runner.
An object scoped only to this test case, that can be used to share state between test steps.
Capture an attachment of some content that should be associated with this test step, and might be accessed later in a report.
the content to attach, as a stream, buffer or just a plain string
declare more information about this attachment
Capture a URL attachment.
the URL to be captured
Optional
title: stringthe text title that should accompany the URL
A shorthand for TestCaseContext.attach with a special media type.
Capture a "log" attachment.
the text to be logged
A shorthand for TestCaseContext.attach with a special media type.
A context object injected into every test step function as the first argument.