@@ -313,16 +313,13 @@ describe('lib', () => {
313
313
} ) ;
314
314
} ) ;
315
315
316
- it ( 'should support a root tsconfig.json instead of tsconfig.base.json' , async ( ) => {
317
- // ARRANGE
316
+ it ( 'should create tsconfig.base.json when it is missing' , async ( ) => {
318
317
tree . rename ( 'tsconfig.base.json' , 'tsconfig.json' ) ;
319
318
320
- // ACT
321
319
await runLibraryGeneratorWithOpts ( ) ;
322
320
323
- // ASSERT
324
321
const appTsConfig = readJson ( tree , 'libs/my-lib/tsconfig.json' ) ;
325
- expect ( appTsConfig . extends ) . toBe ( '../../tsconfig.json' ) ;
322
+ expect ( appTsConfig . extends ) . toBe ( '../../tsconfig.base. json' ) ;
326
323
} ) ;
327
324
328
325
it ( 'should check for existence of spec files before deleting them' , async ( ) => {
@@ -663,56 +660,6 @@ describe('lib', () => {
663
660
tsconfigJson . compilerOptions . paths [ 'my-dir-my-lib/*' ]
664
661
) . toBeUndefined ( ) ;
665
662
} ) ;
666
-
667
- it ( 'should create a local tsconfig.json' , async ( ) => {
668
- // ACT
669
- await runLibraryGeneratorWithOpts ( { directory : 'myDir' } ) ;
670
-
671
- // ASSERT
672
- const tsconfigJson = readJson ( tree , 'libs/my-dir/my-lib/tsconfig.json' ) ;
673
-
674
- expect ( tsconfigJson ) . toEqual ( {
675
- extends : '../../../tsconfig.base.json' ,
676
- angularCompilerOptions : {
677
- enableI18nLegacyMessageIdFormat : false ,
678
- strictInjectionParameters : true ,
679
- strictInputAccessModifiers : true ,
680
- strictTemplates : true ,
681
- } ,
682
- compilerOptions : {
683
- forceConsistentCasingInFileNames : true ,
684
- noFallthroughCasesInSwitch : true ,
685
- noPropertyAccessFromIndexSignature : true ,
686
- noImplicitOverride : true ,
687
- noImplicitReturns : true ,
688
- strict : true ,
689
- target : 'es2022' ,
690
- useDefineForClassFields : false ,
691
- } ,
692
- files : [ ] ,
693
- include : [ ] ,
694
- references : [
695
- {
696
- path : './tsconfig.lib.json' ,
697
- } ,
698
- {
699
- path : './tsconfig.spec.json' ,
700
- } ,
701
- ] ,
702
- } ) ;
703
- } ) ;
704
-
705
- it ( 'should support a root tsconfig.json instead of tsconfig.base.json' , async ( ) => {
706
- // ARRANGE
707
- tree . rename ( 'tsconfig.base.json' , 'tsconfig.json' ) ;
708
-
709
- // ACT
710
- await runLibraryGeneratorWithOpts ( { directory : 'myDir' } ) ;
711
-
712
- // ASSERT
713
- const appTsConfig = readJson ( tree , 'libs/my-dir/my-lib/tsconfig.json' ) ;
714
- expect ( appTsConfig . extends ) . toBe ( '../../../tsconfig.json' ) ;
715
- } ) ;
716
663
} ) ;
717
664
718
665
describe ( 'at the root' , ( ) => {
0 commit comments