@@ -174,14 +174,15 @@ describe('Application Schematic', () => {
174174 expect ( karmaConf ) . toContain ( `dir: require('path').join(__dirname, '../../coverage/foo')` ) ;
175175 } ) ;
176176
177- it ( 'minimal=true should not create e2e and test targets' , async ( ) => {
177+ it ( 'minimal=true should not create e2e, lint and test targets' , async ( ) => {
178178 const options = { ...defaultOptions , minimal : true } ;
179179 const tree = await schematicRunner . runSchematicAsync ( 'application' , options , workspaceTree )
180180 . toPromise ( ) ;
181181 const config = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
182182 const architect = config . projects . foo . architect ;
183183 expect ( architect . test ) . not . toBeDefined ( ) ;
184184 expect ( architect . e2e ) . not . toBeDefined ( ) ;
185+ expect ( architect . e2e ) . not . toBeDefined ( ) ;
185186 } ) ;
186187
187188 it ( 'should create correct files when using minimal' , async ( ) => {
@@ -271,6 +272,18 @@ describe('Application Schematic', () => {
271272 const packageJson = JSON . parse ( tree . readContent ( 'package.json' ) ) ;
272273 expect ( packageJson . devDependencies [ '@angular-devkit/build-angular' ] ) . toBeUndefined ( ) ;
273274 } ) ;
275+
276+ it ( 'should set the lint tsConfig option' , async ( ) => {
277+ const tree = await schematicRunner . runSchematicAsync ( 'application' , defaultOptions , workspaceTree )
278+ . toPromise ( ) ;
279+ const workspace = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
280+ const lintOptions = workspace . projects . foo . architect . lint . options ;
281+ expect ( lintOptions . tsConfig ) . toEqual ( [
282+ 'projects/foo/tsconfig.app.json' ,
283+ 'projects/foo/tsconfig.spec.json' ,
284+ 'projects/foo/e2e/tsconfig.json' ,
285+ ] ) ;
286+ } ) ;
274287 } ) ;
275288
276289 describe ( 'custom projectRoot' , ( ) => {
0 commit comments