By @olizilla
See:
*Other components are available
Program hardware with plain old JS and your favourite editor
Expose Arduino functionality over the serialport
johnny-five ⇄ serialport ⇄ Firmata ⇄ Arduino
Good luck with your test coverage