react-native-github: set path mock to posix by default
Summary: @public Otherwise tests using `path` but not `fs` have an empty mock, as it happens on https://github.com/facebook/metro/issues/235#issuecomment-423722747 Reviewed By: mjesun Differential Revision: D10008513 fbshipit-source-id: 673e2ca79c8105a68818985dc08fe7ccd5d13881
This commit is contained in:
Родитель
65e4e674fc
Коммит
9c242c8a2f
|
@ -17,4 +17,6 @@ function reset(platform) {
|
||||||
|
|
||||||
mockPath.mock = {reset};
|
mockPath.mock = {reset};
|
||||||
|
|
||||||
|
reset('posix');
|
||||||
|
|
||||||
module.exports = mockPath;
|
module.exports = mockPath;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче