Skip to content

Commit

Permalink
Use npmcli config in asyncapi generator
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrick-boule committed Nov 17, 2023
1 parent 363d2b1 commit 5fb8462
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/__mocks__/@npmcli/config.js
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 5fb8462

Please sign in to comment.