RN buck: bundleCommand: add test for multiple bundles

Reviewed By: davidaurelio

Differential Revision: D5932971

fbshipit-source-id: 317e4503b87224cb3fa4ed7819b8af334d0b186b
This commit is contained in:
Jean Lauliac 2017-10-02 09:11:07 -07:00 committed by Facebook Github Bot
parent a5d1d25f56
commit 53a339a459

View File

@ -291,6 +291,12 @@ fs.close.mockImplementation((fd, callback = noop) => {
let filesystem = {}; let filesystem = {};
fs.mock = {
clear() {
filesystem = {};
},
};
fs.createReadStream.mockImplementation(filepath => { fs.createReadStream.mockImplementation(filepath => {
if (!filepath.startsWith('/')) { if (!filepath.startsWith('/')) {
throw Error('Cannot open file ' + filepath); throw Error('Cannot open file ' + filepath);