I am currently working on writing a test for my smart contract in Hardhat using JavaScript. I have encountered an issue where if a call to my contract fails, the entire block of tests is reverted and the remaining code does not execute. How can I ensure that the rest of the test runs even after a failed contract call?
some code 1
await contract.function()
// intentionally failing contract call
some code 2
Even though the contract call fails, I still need the result of "some code 2" without the test being interrupted.