I am coming up to speed on JS ES5/ES6 modules, how to test them, package them, etc. I am somewhat familiar with the module exports feature that node and npm wants, for instance, but in this case I am adding functionality onto JS prototypes as well as static methods on those base "types" (classes).
Just for example,
Array.prototype.suchAndSuch = ...
Or,
Array.thisThatAndTheOther = ...
Not necessarily, Array
, per se, but you get the idea, hopefully.
I'm unclear as to how that necessarily gets included, imported, or otherwise "required" for use during a unit test?
Thanks!