-
Error: Not implemented: HTMLFormElement.prototype.submit
Published on September 24, 2021
Continue Reading »If you ever tried to test a real form submission with Jest and JSDOM, you have probably seen this error:
title: Error: Not implemented: HTMLFormElement.prototype.submit
The pattern I use in this cases is wrapping the form in the tests with a
FormMock
component: -
Stop Stashing
Published on June 14, 2020
Continue Reading »I know the feeling, you are working on one branch, you need to fix something else in another branch and...
error: Your local changes to the following files would be overwritten by checkout:
mycoolfile.js
Please commit your changes or stash them before you switch branches.
Aborting