1 min readAug 20, 2018
A good module system will let you swap things out.
Node has some built-in support, but it’s a little awkward, mock-require makes it easier. Hopefully there will still be a good solution when ES modules are a thing.
A good module system will let you swap things out.
Node has some built-in support, but it’s a little awkward, mock-require makes it easier. Hopefully there will still be a good solution when ES modules are a thing.