Returns the (case+subcase) parameters for this test function invocation.
Gets the test fixture's shared state. This object is shared between subcases within the same testcase.
Wraps an async function, passing it an Error
object recording the original stack trace.
The async work will be implicitly waited upon before reporting a test status.
If the argument is an Error
, fail (or warn). If it's undefined
, no-op.
If the argument is an array, apply the above behavior on each of elements.
Optional
mode?: "fail" | "warn"Optional
niceExpect that the provided promise rejects, with the provided exception name.
Expect that the provided function throws (if true
or string
) or not (if false
).
If a string is provided, expect that the throw exception has that name.
MAINTENANCE_TODO: Change to string | false
so the exception name is always checked.
Static
MakeGenerated using TypeDoc
A Fixture is a class used to instantiate each test sub/case at run time. A new instance of the Fixture is created for every single test subcase (i.e. every time the test function is run).