@haraldki/unittesterjs - v2.0.0
    Preparing search index...

    Type Alias UnitTesterOptions

    Options to configure a UnitTester.

    type UnitTesterOptions = {
        failureTypes?: ErrorClass[];
        isTest?: RegExp;
        isTestClass?: RegExp;
        log?: TestLogger;
    }
    Index

    Properties

    failureTypes?: ErrorClass[]

    Class objects derived from Error which are thrown by your testing framework, for example AssertionError for chai. If a test method throws an instance of one of these classes, it is reported as a failed test. If any other cruft is thrown, the test is reported as crashed.

    isTest?: RegExp

    A regular expression applied to methods of a test instance with RegExp.test() to decide whether it is a test function. Default: /^test/.

    isTestClass?: RegExp

    A regular expression applied to functions/classes of a test module with RegExp.test() to decide whether it is a test class (i.e. constructor). Default: /^test/.

    The logger used to report test outcome. Default: new DefaultTestLogger() and is. See DefaultTestLogger, HtmlTestLogger