I would like to add a simple jest test to my lightning web component in order to test the functionality of the following on submit event handler.
handleSubmit(event) {
event.preventDefault();
const fields = event.detail.fields;
fields.Some_field__c = 'Some value';
this.template.querySelector('lightning-record-edit-form').submit(fields);
}
It seems to me that I should be able to test that Some_field__c has been appropriately updated. The handle submit will fire in the jest test, but I can't find any documentation on how to read the subsequently resubmitted fields.