As a personal advice, you can go with a M1 or M2, depending on your budget, either are really fast processors. However, the standard 8 GiB of RAM really bothers me and I hate the fact Apple still sells some computers with so little memory. I you plan to use this computer ONLY for testing your Electron app, you can go with the basic 8 GiB of RAM, but I REALLY recommend you to upgrade to 16 GiB.
Also, if you're on a budget, check out Apple's refurb or Backmarket, but go with a M1/M2 processor anyway, there is no point to use a Intel chip today.