On this page

    M

    suite

    History
    suite(name?, options?, fn?): Promise
    Attributes
    name?:string
    The name of the suite, which is displayed when reporting test results. Default: The name property of fn, or '<anonymous>' if fn does not have a name.
    options:Object
    Optional configuration options for the suite. This supports the same options as test([name][, options][, fn]).
    The suite function declaring nested tests and suites. The first argument to this function is a SuiteContext object. Default: A no-op function.
    Returns:Promise
    Immediately fulfilled with undefined.

    The suite() function is imported from the node:test module.