
I am using Chai with Mocha, I need to save this assertion failure message in a variable to pass it to testrail.
Thanks
I have tried using try catch block with in it block which is working fine but do we have any better approach available in mocha or chai? like we can read currentTest.title currentTest.status is there anything like currentTest.errorMessage?