Is it possible to override the global require function, affecting it at process level?
require
process
From what I know, the require
mock-require does this by overriding Module._load (which is what the real require actually calls).