Skip to content

Commit

Permalink
MockedGenerator should extend Generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Mar 5, 2021
1 parent 799c028 commit cf8e373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ YeomanTest.prototype.mockLocalConfig = function (generator, localConfig) {
*/

YeomanTest.prototype.createMockedGenerator = (
Generator = require('yeoman-generator')
Generator = class MockedGenerator extends require('yeoman-generator') {}
) => {
const generator = sinon.spy(Generator);
['run', 'queueTasks', 'runWithOptions', 'queueOwnTasks'].forEach(
Expand Down

0 comments on commit cf8e373

Please sign in to comment.