How to mark test passed/failed on LambdaTest with JS-WD?

How can I mark test passed/failed on LambdaTest with JS-WD?

Hello Macy,

You can mark the test as passed or failed by adding the lambda-status hooks given below:

For Passed Test:
browser.executeScript("lambda-status=passed");
For Failed Test:
driver.executeScript('lambda-status=failed');

For your reference, please click here: Lambda Hooks For Selenium Automation | LambdaTest | LambdaTest