Test-Runner

Test Runner APIs

The test module enables the creation of JavaScript tests, drawing inspiration from Deno's built-in test runner.

Classes

TestRunner

Methods

(inner) test(description, testFn, optionsopt)

Specifies a test to be registered with the default test runner.

Source:
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.

Name Type Attributes Description
ignore boolean <optional>

The test will be registered but not executed.