How to mark a test case as pass on LambdaTest using JS-Mocha?

How to mark a test case as pass on LambdaTest using JS-Mocha?

Hey Joe,

Try passing out the following in the try block:

catch (Exception $e){
        self::$driver->executeScript("lambda-status=failed");
        }

Refer to Lambdatest Hooks -