Mock properties on global objects across a `require` call.