mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 15:45:32 +00:00
RN buck: bundleCommand: add test for multiple bundles
Reviewed By: davidaurelio Differential Revision: D5932971 fbshipit-source-id: 317e4503b87224cb3fa4ed7819b8af334d0b186b
This commit is contained in:
parent
a5d1d25f56
commit
53a339a459
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user