mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
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:
committed by
Facebook Github Bot
parent
65e4e674fc
commit
9c242c8a2f
@@ -17,4 +17,6 @@ function reset(platform) {
|
||||
|
||||
mockPath.mock = {reset};
|
||||
|
||||
reset('posix');
|
||||
|
||||
module.exports = mockPath;
|
||||
|
||||
Reference in New Issue
Block a user