pete/todo

(require("pete/todo"))(nameopt, fn, optsopt, cbopt) → {boolean}

Description:
  • Prepare test but override it so it will not exit on error.
    It will not run warmup phase. It will be reported as todo instead.

    Returns true if test was prepared and added to the queue.

Source:
Parameters:
Name Type Attributes Description
name string <optional>
fn function | string

function to run, or path to file that calls any combination of test, skip and/or todo

opts module:pete/lib/RunOptions | object <optional>
cb function <optional>

function to call back with array of results

Returns:
Type
boolean