I have below code. How can i cover in the Jest salesforce?
testhandle(event) {
let testAbr = event.target.text;
if (testAbr) {
this.dispatchEvent(new CustomEvent('testpasss', { detail: { type: 'specilsnumber', input: testAbr } }));
}
}
this is coming on the click of user from UI. onclick={testhandle}