Mock node require calls, with support for mocking the entire module itself rather than only its properties