Permalink
Browse files

RN buck: bundleCommand: add test for multiple bundles

Reviewed By: davidaurelio

Differential Revision: D5932971

fbshipit-source-id: 317e4503b87224cb3fa4ed7819b8af334d0b186b
  • Loading branch information...
jeanlauliac authored and facebook-github-bot committed Oct 2, 2017
1 parent a5d1d25 commit 53a339a45970252a3e0c4c91bd02061f2e2ed099
Showing with 6 additions and 0 deletions.
  1. +6 −0 local-cli/util/__mocks__/fs.js
@@ -291,6 +291,12 @@ fs.close.mockImplementation((fd, callback = noop) => {
let filesystem = {};
fs.mock = {
clear() {
filesystem = {};
},
};
fs.createReadStream.mockImplementation(filepath => {
if (!filepath.startsWith('/')) {
throw Error('Cannot open file ' + filepath);

0 comments on commit 53a339a

Please sign in to comment.