What is the command to setup status in a LambdaTest App automation test? I am using Javascript

What is the command to setup status in a LambdaTest App automation test? I am using Javascript.

Hey Macy

To answer this question, you can use the below command to set the test status in JavaScript App automation test.

browser.execute('lambda-hook: {"action": "setTestStatus", "arguments": {"status": "failed", "remark": "This is a sample remark for failed test"}}');