@asyncapi/generator
Version:
The AsyncAPI generator. It can generate documentation, code, anything!
12 lines (8 loc) • 307 B
JavaScript
const arb = jest.genMockFromModule('@npmcli/arborist');
arb.prototype[Symbol.for('resolvedAdd')] = [{name: 'test'}];
arb.prototype.reify = jest.fn(async (opt) => {
const childrenMap = new Map();
childrenMap.set('test', {path: './test'});
return { children: childrenMap };
});
module.exports = arb;