@@ -174,14 +174,15 @@ describe('Application Schematic', () => {
174
174
expect ( karmaConf ) . toContain ( `dir: require('path').join(__dirname, '../../coverage/foo')` ) ;
175
175
} ) ;
176
176
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 ( ) => {
178
178
const options = { ...defaultOptions , minimal : true } ;
179
179
const tree = await schematicRunner . runSchematicAsync ( 'application' , options , workspaceTree )
180
180
. toPromise ( ) ;
181
181
const config = JSON . parse ( tree . readContent ( '/angular.json' ) ) ;
182
182
const architect = config . projects . foo . architect ;
183
183
expect ( architect . test ) . not . toBeDefined ( ) ;
184
184
expect ( architect . e2e ) . not . toBeDefined ( ) ;
185
+ expect ( architect . e2e ) . not . toBeDefined ( ) ;
185
186
} ) ;
186
187
187
188
it ( 'should create correct files when using minimal' , async ( ) => {
@@ -271,6 +272,18 @@ describe('Application Schematic', () => {
271
272
const packageJson = JSON . parse ( tree . readContent ( 'package.json' ) ) ;
272
273
expect ( packageJson . devDependencies [ '@angular-devkit/build-angular' ] ) . toBeUndefined ( ) ;
273
274
} ) ;
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
+ } ) ;
274
287
} ) ;
275
288
276
289
describe ( 'custom projectRoot' , ( ) => {
0 commit comments