Skip to content

Commit

Permalink
react-native-github: set path mock to posix by default
Browse files Browse the repository at this point in the history
Summary:
@public

Otherwise tests using `path` but not `fs` have an empty mock, as it happens on facebook/metro#235 (comment)

Reviewed By: mjesun

Differential Revision: D10008513

fbshipit-source-id: 673e2ca79c8105a68818985dc08fe7ccd5d13881
  • Loading branch information
Jean Lauliac authored and facebook-github-bot committed Sep 24, 2018
1 parent 65e4e67 commit 9c242c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions local-cli/__mocks__/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ function reset(platform) {

mockPath.mock = {reset};

reset('posix');

module.exports = mockPath;

0 comments on commit 9c242c8

Please sign in to comment.