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 92c9125 commit 363d2b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/generator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,15 @@ describe('Generator', () => {
describe('#installTemplate', () => {
let ArboristMock;
let arboristMock;
let ConfigMock;
let configMock;
let utils;

beforeEach(() => {
ArboristMock = require('@npmcli/arborist');
arboristMock = new ArboristMock();
ConfigMock = require('@npmcli/arborist');
configMock = new ConfigMock();
utils = require('../lib/utils');
jest.mock(path.resolve('./testTemplate', 'package.json'), () => ({ name: 'nameOfTestTemplate' }), { virtual: true });
jest.mock(path.resolve(Generator.DEFAULT_TEMPLATES_DIR, 'nameOfTestTemplate', 'package.json'), () => ({ name: 'nameOfTestTemplate' }), { virtual: true });
Expand Down

0 comments on commit 363d2b1

Please sign in to comment.