ignacio catalina

GitHub icon
Twitter icon
LinkedIn icon
  • Error: Not implemented: HTMLFormElement.prototype.submit

    Published on September 24, 2021

    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:

    Continue Reading »
    • #jest
    • #react
  • Stop Stashing

    Published on June 14, 2020

    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
    Continue Reading »
    • #git
Page 1 of 2 Older Articles »