Skip to content

Commit

Permalink
metro-memory-fs: enforce explicit cwd()
Browse files Browse the repository at this point in the history
Reviewed By: mjesun

Differential Revision: D8137985

fbshipit-source-id: 2154cd758c079678d84f9c371d23bafb9511ec93
  • Loading branch information
Jean Lauliac authored and facebook-github-bot committed May 25, 2018
1 parent 9b7f6ab commit 2374147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-cli/__mocks__/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

'use strict';

const fs = new (require('metro-memory-fs'))();
const fs = new (require('metro-memory-fs'))({cwd: process.cwd});

function setMockFilesystem(object) {
fs.reset();
Expand Down

0 comments on commit 2374147

Please sign in to comment.