diff --git a/generators/generate-blueprint/templates/generators/generator/generator.spec.mjs.ejs b/generators/generate-blueprint/templates/generators/generator/generator.spec.mjs.ejs index 3f66bcb0f357..9fd887094e3d 100644 --- a/generators/generate-blueprint/templates/generators/generator/generator.spec.mjs.ejs +++ b/generators/generate-blueprint/templates/generators/generator/generator.spec.mjs.ejs @@ -42,7 +42,7 @@ describe('SubGenerator <%= subGenerator %> of <%= application.baseName %> JHipst inline: 'application { }', <%_ } _%> }) - .withJHipsterLookup() + .withJHipsterGenerators() .withParentBlueprintLookup(); }); diff --git a/lib/testing/helpers.ts b/lib/testing/helpers.ts index 54ec75d740d8..4faf9b2ffc16 100644 --- a/lib/testing/helpers.ts +++ b/lib/testing/helpers.ts @@ -240,14 +240,9 @@ class JHipsterRunContext extends RunContext { }); } + /** @deprecated use withJHipsterGenerators */ withJHipsterLookup(): this { - return this.withLookups([ - { - packagePaths: [getPackageRoot()], - // @ts-expect-error lookups is not exported - lookups: [`${isDistFolder() ? 'dist/' : ''}generators`, `${isDistFolder() ? 'dist/' : ''}generators/*/generators`], - }, - ]); + return this.withJHipsterGenerators(); } /**