Node TAP
    Preparing search index...

    Variable doesNotThrow

    doesNotThrow: (
        fn: Function | (() => any),
        ...__namedParameters: MessageExtra,
    ) => boolean | Error

    Type Declaration

      • (
            fn: Function | (() => any),
            ...__namedParameters: MessageExtra,
        ): boolean | Error
      • Returns the error object if it throws and that does not fail the test (by virtue of being marked skip or todo). Otherwise returns the passing status, like other assertions.

        Parameters

        • fn: Function | (() => any)
        • ...__namedParameters: MessageExtra

        Returns boolean | Error