You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('generates a project',()=>{returnhelpers.run(join(__dirname,'../generators/app')).withPrompts({chooseApp: 'app-node-pl',patternType: '02-molecules',name: 'New Component Test',}).then(()=>{console.log('Generator ran');});});
Getting the following error:
TypeError: Class constructor Generator cannot be invoked without 'new'
With this stack:
at new _class (new-component/generators/app/index.js:30:5)
at Environment.instantiate (new-component/node_modules/yeoman-environment/lib/environment.js:470:12)
at Environment.create (new-component/node_modules/yeoman-environment/lib/environment.js:448:17)
at RunContext.Object.<anonymous>.RunContext._run (new-component/node_modules/yeoman-test/lib/run-context.js:91:29)
at RunContext.<anonymous> (new-component/node_modules/yeoman-test/lib/run-context.js:59:10)
at new-component/node_modules/lodash/lodash.js:5118:35
at new-component/node_modules/yeoman-test/lib/index.js:93:5
at next (new-component/node_modules/rimraf/rimraf.js:83:7)
at CB (new-component/node_modules/rimraf/rimraf.js:119:9)
at new-component/node_modules/rimraf/rimraf.js:145:14
With this simple test:
Getting the following error:
With this stack:
With these deps:
Is
yeoman-test@^2.0.0
compatible withyeoman-generator@^4.1.0
?The text was updated successfully, but these errors were encountered: