if (path.basename(dir) === 'node_modules') {
        return null;
      }
Create `getPackage` and `getPackageForModule` accessor properties on
`ResolutionContext` based on the input mock file/package.json map.