@@ -49,7 +49,7 @@ describe('Application Schematic', () => {
49
49
} ) ;
50
50
51
51
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 ) ;
53
53
54
54
const files = tree . files ;
55
55
expect ( files ) . toEqual (
@@ -64,15 +64,23 @@ describe('Application Schematic', () => {
64
64
65
65
describe ( 'workspace config' , ( ) => {
66
66
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
+ ) ;
68
72
69
73
const workspace = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
70
74
const targets = workspace . projects . foo . architect ;
71
75
expect ( targets . e2e ) . toBeDefined ( ) ;
72
76
} ) ;
73
77
74
78
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
+ ) ;
76
84
77
85
const workspace = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
78
86
const { options, configurations } = workspace . projects . foo . architect . e2e ;
@@ -82,7 +90,7 @@ describe('Application Schematic', () => {
82
90
} ) ;
83
91
84
92
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 ) ;
86
94
87
95
const pkg = JSON . parse ( tree . readContent ( '/package.json' ) ) ;
88
96
expect ( pkg . scripts [ 'e2e' ] ) . toBe ( 'ng e2e' ) ;
0 commit comments