You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.
The method getFullPath() does not take into consideration Win32 environments with mixed Posix style require strings.
For instance:
mockRequire(process.cwd() + "/" + path, obj);
In Posix environment the backslash remains, but in Win32 environment, the backslash becomes a forward slash "".
To overcome, wrap the result of getFullPath() with a call to normalize(), exposed by the path module.
The text was updated successfully, but these errors were encountered: