test
function imported from magnitude-test
.
test(title, options?, testFn)
Defines a new test case.
A descriptive title for the test case. This title appears in test reports and logs.
Optional configuration specific to this test case.
An asynchronous function containing the test logic. It receives an
agent
object with the properties described below.test.group(id, options?, groupFn)
Defines a group of test cases, allowing shared options (like url
) to be applied to all tests within the group.
A descriptive identifier for the test group.
Optional configuration applied to all tests within this group. See properties below.
A synchronous function that contains the
test()
declarations belonging to this group.