Test Runner APIs
The test module enables the creation of JavaScript tests, drawing inspiration from Deno's built-in test runner.
- Source:
- See:
Classes
Methods
(inner) test(description, testFn, optionsopt)
Specifies a test to be registered with the default test runner.
Parameters:
Name | Type | Attributes | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
description |
string
|
A brief description of the test. |
|||||||||
testFn |
string
|
The test function where the actual test logic is implemented. |
|||||||||
options |
Object
|
<optional> |
Additional configuration options for the test.
|