diff --git a/test/__mocks__/@npmcli/config.js b/test/__mocks__/@npmcli/config.js new file mode 100644 index 0000000000..c0cae96c8d --- /dev/null +++ b/test/__mocks__/@npmcli/config.js @@ -0,0 +1,9 @@ +const config = jest.genMockFromModule('@npmcli/config'); + +config.prototype[Symbol.for('resolvedAdd')] = [{name: 'test'}]; + +config.prototype.load = jest.fn(async (opt) => { + return; +}); + +module.exports = config; \ No newline at end of file