How can I mark a test case as passed with Jest framework on LambdaTest?

How can I mark a test case as passed with Jest framework on LambdaTest?

Hi Yanisleidi!

To mark a test case as passed using Jest framework, pass the following in the catch block of your test script.

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