You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you add a test example of a stencil component that has a form that calls a method in that component with the onSubmit. I can't get this to work in the test as it seems the method that is called is being mocked by jest. Thanks!
`<form name="claimSearchForm" onReset={() => this.resetForm()}
onSubmit={(e) => this.handleSubmit(e)} ref={(el) => this.claimForm = el as HTMLFormElement}
class="needs-validation" novalidate enctype="multipart/form-data">
Can you add a test example of a stencil component that has a form that calls a method in that component with the onSubmit. I can't get this to work in the test as it seems the method that is called is being mocked by jest. Thanks!
`<form name="claimSearchForm" onReset={() => this.resetForm()}
onSubmit={(e) => this.handleSubmit(e)} ref={(el) => this.claimForm = el as HTMLFormElement}
class="needs-validation" novalidate enctype="multipart/form-data">
async handleSubmit(e) {
console.log("handle called");
e.preventDefault();
}`
The text was updated successfully, but these errors were encountered: