How to mark test passed/failed on LambdaTest in JS-Nightwatch?

How can I mark test passed/failed on LambdaTest in JS-Nightwatch?

Hello Macy,

This will require the use of hook to mark test fail on LambdaTest in the framework:

driver.executeScript('lambda-status=failed');