@@ -49,7 +49,7 @@ describe('Application Schematic', () => {
4949 } ) ;
5050
5151 it ( 'should create all files of e2e in an application' , async ( ) => {
52- const tree = await schematicRunner . runSchematic ( 'e2e' , defaultOptions , applicationTree ) ;
52+ const tree = await schematicRunner . runSchematic ( 'private- e2e' , defaultOptions , applicationTree ) ;
5353
5454 const files = tree . files ;
5555 expect ( files ) . toEqual (
@@ -64,15 +64,23 @@ describe('Application Schematic', () => {
6464
6565 describe ( 'workspace config' , ( ) => {
6666 it ( 'should add e2e targets for the app' , async ( ) => {
67- const tree = await schematicRunner . runSchematic ( 'e2e' , defaultOptions , applicationTree ) ;
67+ const tree = await schematicRunner . runSchematic (
68+ 'private-e2e' ,
69+ defaultOptions ,
70+ applicationTree ,
71+ ) ;
6872
6973 const workspace = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
7074 const targets = workspace . projects . foo . architect ;
7175 expect ( targets . e2e ) . toBeDefined ( ) ;
7276 } ) ;
7377
7478 it ( 'should set the e2e options' , async ( ) => {
75- const tree = await schematicRunner . runSchematic ( 'e2e' , defaultOptions , applicationTree ) ;
79+ const tree = await schematicRunner . runSchematic (
80+ 'private-e2e' ,
81+ defaultOptions ,
82+ applicationTree ,
83+ ) ;
7684
7785 const workspace = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
7886 const { options, configurations } = workspace . projects . foo . architect . e2e ;
@@ -82,7 +90,7 @@ describe('Application Schematic', () => {
8290 } ) ;
8391
8492 it ( 'should add an e2e script in package.json' , async ( ) => {
85- const tree = await schematicRunner . runSchematic ( 'e2e' , defaultOptions , applicationTree ) ;
93+ const tree = await schematicRunner . runSchematic ( 'private- e2e' , defaultOptions , applicationTree ) ;
8694
8795 const pkg = JSON . parse ( tree . readContent ( '/package.json' ) ) ;
8896 expect ( pkg . scripts [ 'e2e' ] ) . toBe ( 'ng e2e' ) ;
0 commit comments