The tl;dr is:
1) How can I have Jest use the native require function to load all modules in my tests anywhere.
require
2) Where / how would I go about modif
setupFiles worked for me. Add this in package.json:
setupFiles
"jest": { "setupFiles": ["./my_file.js"] },
https://jestjs.io/docs/en/configuration.html#setupfiles-array