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

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

Hi Macy,

Pass the following in the try block, refer to the snippet below:

self::$driver->executeScript("lambda-status=passed");

You can also refer to LambdaTest Hooks -