@@ -695,11 +695,13 @@ describe('Environment Resolver', function () {
695
695
before ( ( ) => {
696
696
process . chdir ( customProjectRoot ) ;
697
697
698
+ linkGenerator ( 'generator-extend' ) ;
698
699
linkGenerator ( 'generator-scoped' , '@dummyscope' ) ;
699
700
linkGenerator ( 'generator-module' ) ;
700
701
} ) ;
701
702
702
703
after ( ( ) => {
704
+ unlinkGenerator ( 'generator-extend' ) ;
703
705
unlinkGenerator ( 'generator-scoped' , '@dummyscope' ) ;
704
706
unlinkGenerator ( 'generator-module' ) ;
705
707
@@ -715,17 +717,13 @@ describe('Environment Resolver', function () {
715
717
assert . ok ( packagePath . endsWith ( 'node_modules/@dummyscope/generator-scoped' ) ) ;
716
718
} ) ;
717
719
it ( 'Lookup' , ( ) => {
718
- const modulePath = Environment . lookupGenerator ( 'dummy:app' ) ;
719
- const modulePath2 = Environment . lookupGenerator ( 'dummy:yo' ) ;
720
- assert . ok ( modulePath . endsWith ( 'node_modules/generator-dummy/app/index.js' ) ) ;
721
- assert . ok ( modulePath2 . endsWith ( 'node_modules/generator-dummy/yo/index.js' ) ) ;
722
-
723
- const packagePath = Environment . lookupGenerator ( 'dummy:app' , { packagePath : true } ) ;
724
- const packagePath2 = Environment . lookupGenerator ( 'dummy:yo' , { packagePath : true } ) ;
725
- const packagePath3 = Environment . lookupGenerator ( 'dummy' , { packagePath : true } ) ;
726
- assert . ok ( packagePath . endsWith ( 'node_modules/generator-dummy' ) ) ;
727
- assert . ok ( packagePath2 . endsWith ( 'node_modules/generator-dummy' ) ) ;
728
- assert . ok ( packagePath3 . endsWith ( 'node_modules/generator-dummy' ) ) ;
720
+ const modulePath = Environment . lookupGenerator ( 'extend:support' ) ;
721
+ assert . ok ( modulePath . endsWith ( 'node_modules/generator-extend/support/index.js' ) ) ;
722
+
723
+ const packagePath = Environment . lookupGenerator ( 'extend:support' , { packagePath : true } ) ;
724
+ const packagePath3 = Environment . lookupGenerator ( 'extend' , { packagePath : true } ) ;
725
+ assert . ok ( packagePath . endsWith ( 'node_modules/generator-extend' ) ) ;
726
+ assert . ok ( packagePath3 . endsWith ( 'node_modules/generator-extend' ) ) ;
729
727
} ) ;
730
728
it ( 'Module Lookup' , ( ) => {
731
729
const modulePath = Environment . lookupGenerator ( 'module:app' ) ;
0 commit comments