metro-buck: add script to auto-gen source maps and stacks

Reviewed By: davidaurelio

Differential Revision: D7952999

fbshipit-source-id: 267dec03b5b60786355d33856bba46a9e367b275
This commit is contained in:
Jean Lauliac 2018-05-11 03:55:35 -07:00 committed by Facebook Github Bot
parent 99598062ef
commit 192e1080ab
2 changed files with 0 additions and 16 deletions

View File

@ -63,13 +63,6 @@ exports.create = function create(resolve: ResolveFn, load: LoadFn): GraphFn {
skip,
}));
if (tasks.length === 0) {
log.error('`Graph` called without any entry points');
return Promise.reject(
new Error('At least one entry point has to be passed.'),
);
}
queue.enqueue(...tasks);
return collect(await queue.result);
}

View File

@ -36,15 +36,6 @@ describe('Graph:', () => {
graph = Graph.create(resolve, load);
});
it('calls back an error when called without any entry point', async () => {
expect.assertions(1);
try {
await graph([], anyPlatform, {log: quiet});
} catch (error) {
expect(error).toEqual(any(Error));
}
});
it('resolves the entry point with the passed-in `resolve` function', async () => {
const entryPoint = '/arbitrary/path';
await graph([entryPoint], anyPlatform, noOpts);