@@ -58,7 +58,7 @@ describe('Migration to version 9', () => {
58
58
59
59
it ( 'should update apps tsConfig with stricter files inclusions' , async ( ) => {
60
60
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 ( ) ;
62
62
const { exclude, files } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
63
63
expect ( exclude ) . toBeUndefined ( ) ;
64
64
expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
@@ -72,7 +72,7 @@ describe('Migration to version 9', () => {
72
72
73
73
overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
74
74
75
- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
75
+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
76
76
const { files, include } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
77
77
expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
78
78
expect ( include ) . toEqual ( [ 'foo.ts' ] ) ;
@@ -87,7 +87,7 @@ describe('Migration to version 9', () => {
87
87
88
88
overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
89
89
90
- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
90
+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
91
91
const { files, include, exclude } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
92
92
expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
93
93
expect ( include ) . toEqual ( [ 'src/**/*.d.ts' ] ) ;
@@ -102,7 +102,7 @@ describe('Migration to version 9', () => {
102
102
103
103
overrideJsonFile ( tree , 'tsconfig.app.json' , tsConfigContent ) ;
104
104
105
- const tree2 = await schematicRunner . runSchematicAsync ( 'migration-09 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
105
+ const tree2 = await schematicRunner . runSchematicAsync ( 'workspace-version-9 ' , { } , tree . branch ( ) ) . toPromise ( ) ;
106
106
const { files, include, exclude } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
107
107
expect ( files ) . toEqual ( [ 'src/main.ts' , 'src/polyfills.ts' ] ) ;
108
108
expect ( include ) . toEqual ( [ 'foo.ts' , 'src/**/*.d.ts' ] ) ;
@@ -111,7 +111,7 @@ describe('Migration to version 9', () => {
111
111
112
112
it ( `should remove angularCompilerOptions when enableIvy is true and it's the only option` , async ( ) => {
113
113
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 ( ) ;
115
115
const { angularCompilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
116
116
expect ( angularCompilerOptions ) . toBeUndefined ( ) ;
117
117
} ) ;
@@ -126,7 +126,7 @@ describe('Migration to version 9', () => {
126
126
} ;
127
127
128
128
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 ( ) ;
130
130
const { angularCompilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
131
131
expect ( angularCompilerOptions . enableIvy ) . toBeUndefined ( ) ;
132
132
expect ( angularCompilerOptions . fullTemplateTypeCheck ) . toBe ( true ) ;
@@ -142,7 +142,7 @@ describe('Migration to version 9', () => {
142
142
} ;
143
143
144
144
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 ( ) ;
146
146
const { angularCompilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
147
147
expect ( angularCompilerOptions . enableIvy ) . toBe ( false ) ;
148
148
expect ( angularCompilerOptions . fullTemplateTypeCheck ) . toBe ( true ) ;
@@ -158,7 +158,7 @@ describe('Migration to version 9', () => {
158
158
} ;
159
159
160
160
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 ( ) ;
162
162
const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
163
163
expect ( compilerOptions . module ) . toBeUndefined ( ) ;
164
164
@@ -177,7 +177,7 @@ describe('Migration to version 9', () => {
177
177
} ;
178
178
179
179
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 ( ) ;
181
181
const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.app.json' ) ) ;
182
182
expect ( compilerOptions . module ) . toBe ( 'esnext' ) ;
183
183
} ) ;
@@ -206,7 +206,7 @@ describe('Migration to version 9', () => {
206
206
. toPromise ( ) ;
207
207
208
208
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 ( ) ;
210
210
const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.server.json' ) ) ;
211
211
expect ( compilerOptions . module ) . toBe ( 'commonjs' ) ;
212
212
} ) ;
@@ -218,7 +218,7 @@ describe('Migration to version 9', () => {
218
218
} ;
219
219
220
220
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 ( ) ;
222
222
const { compilerOptions } = JSON . parse ( tree2 . readContent ( 'tsconfig.json' ) ) ;
223
223
expect ( compilerOptions . module ) . toBe ( 'esnext' ) ;
224
224
} ) ;
0 commit comments