How to click on an element using Jest?

Can you share the steps to click on an element using Jest?

Hi Alex,

Please use the following code. It will require to click the element using the click() command:

driver.get("https://www.lambdatest.com")
element = driver.findElementById("Username").click();