@@ -58,7 +58,7 @@ describe('Migration to version 9', () => {
5858
5959 it ( 'should update apps tsConfig with stricter files inclusions' , async ( ) => {
6060 overrideJsonFile ( tree , 'tsconfig.app.json' , defaultTsConfigOptions ) ;
61- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
61+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
6262 const { exclude, files } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
6363 expect ( exclude ) . toBeUndefined ( ) ;
6464 expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
@@ -72,7 +72,7 @@ describe('Migration to version 9', () => {
7272
7373 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
7474
75- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
75+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
7676 const { files, include } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
7777 expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
7878 expect ( include ) . toEqual ( [ 'foo.ts' ] ) ;
@@ -87,7 +87,7 @@ describe('Migration to version 9', () => {
8787
8888 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
8989
90- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
90+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
9191 const { files, include, exclude } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
9292 expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
9393 expect ( include ) . toEqual ( [ 'src/**/*.d.ts' ] ) ;
@@ -102,7 +102,7 @@ describe('Migration to version 9', () => {
102102
103103 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
104104
105- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
105+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
106106 const { files, include, exclude } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
107107 expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
108108 expect ( include ) . toEqual ( [ 'foo.ts' , 'src/**/*.d.ts' ] ) ;
@@ -111,7 +111,7 @@ describe('Migration to version 9', () => {
111111
112112 it ( `should remove angularCompilerOptions when enableIvy is true and it's the only option` , async ( ) => {
113113 overrideJsonFile ( tree , 'tsconfig.app.json' , defaultTsConfigOptions ) ;
114- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
114+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
115115 const { angularCompilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
116116 expect ( angularCompilerOptions ) . toBeUndefined ( ) ;
117117 } ) ;
@@ -126,7 +126,7 @@ describe('Migration to version 9', () => {
126126 } ;
127127
128128 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
129- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
129+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
130130 const { angularCompilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
131131 expect ( angularCompilerOptions . enableIvy ) . toBeUndefined ( ) ;
132132 expect ( angularCompilerOptions . fullTemplateTypeCheck ) . toBe ( true ) ;
@@ -142,7 +142,7 @@ describe('Migration to version 9', () => {
142142 } ;
143143
144144 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
145- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
145+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
146146 const { angularCompilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
147147 expect ( angularCompilerOptions . enableIvy ) . toBe ( false ) ;
148148 expect ( angularCompilerOptions . fullTemplateTypeCheck ) . toBe ( true ) ;
@@ -158,7 +158,7 @@ describe('Migration to version 9', () => {
158158 } ;
159159
160160 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
161- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
161+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
162162 const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
163163 expect ( compilerOptions . module ) . toBeUndefined ( ) ;
164164
@@ -177,7 +177,7 @@ describe('Migration to version 9', () => {
177177 } ;
178178
179179 overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
180- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
180+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
181181 const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
182182 expect ( compilerOptions . module ) . toBe ( 'esnext' ) ;
183183 } ) ;
@@ -206,7 +206,7 @@ describe('Migration to version 9', () => {
206206 . toPromise ( ) ;
207207
208208 overrideJsonFile ( tree , 'tsconfig.server.json' , tsConfigContent ) ;
209- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
209+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
210210 const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.server.json' ) ) ;
211211 expect ( compilerOptions . module ) . toBe ( 'commonjs' ) ;
212212 } ) ;
@@ -218,7 +218,7 @@ describe('Migration to version 9', () => {
218218 } ;
219219
220220 overrideJsonFile ( tree , 'tsconfig.json' , tsConfigContent ) ;
221- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
221+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
222222 const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.json' ) ) ;
223223 expect ( compilerOptions . module ) . toBe ( 'esnext' ) ;
224224 } ) ;
0 commit comments