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.
Expect that a condition is true.
Note: You can pass a boolean condition, or a function that returns a boolean. The advantage to passing a function is that if it's short it is self documenting.
t.expect(size >= maxSize); // prints Expect OK: t.expect(() => size >= maxSize) // prints Expect OK: () => size >= maxSize
Optional
msg: stringIf 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
Base fixture for testing the exposed interface is correct (without actually using WebGPU).