How to mark a test case as fail on LambdaTest using NightwatchJS?

How to mark a test case as fail on LambdaTest using NightwatchJS?

Hi Devan,

To mark a test case as fail on LambdaTest using NightwatchJS, pass the following in the try block. Refer to the snippet below:

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

Refer to Lambdatest Hooks: