@@ -17,8 +17,8 @@ import {
1717import { scaffoldMigrationProject } from '../test-helpers/scaffoldProject'
1818
1919describe ( 'angularHandler' , { timeout : 60000 } , function ( ) {
20- it ( 'sources the config from angular-19 ' , async ( ) => {
21- const projectRoot = await scaffoldMigrationProject ( 'angular-19 ' )
20+ it ( 'sources the config from angular-20 ' , async ( ) => {
21+ const projectRoot = await scaffoldMigrationProject ( 'angular-20 ' )
2222
2323 process . chdir ( projectRoot )
2424 const devServerConfig = {
@@ -33,39 +33,34 @@ describe('angularHandler', { timeout: 60000 }, function () {
3333 expect ( webpackConfig ) . toBeDefined ( )
3434 expect ( ( webpackConfig ?. entry as any ) . main ) . toBeUndefined ( )
3535 expect ( sourceWebpackModulesResult . framework ?. importPath ) . toContain ( path . join ( '@angular-devkit' , 'build-angular' ) )
36- expect ( webpackConfig . stats ) . toEqual ( 'errors-only' )
3736 const projectConfig = await getProjectConfig ( projectRoot )
3837
3938 expect ( projectConfig ) . toEqual ( {
4039 root : '' ,
4140 sourceRoot : 'src' ,
4241 buildOptions : {
43- outputPath : 'dist/angular' ,
44- index : 'src/index.html' ,
45- main : 'src/main.ts' ,
46- polyfills : 'src/polyfills.ts' ,
42+ browser : 'src/main.ts' ,
43+ // because of the way the main fixtures are configured in the system-test projects, we need to run as a zone.js application
44+ polyfills : [
45+ 'zone.js' ,
46+ ] ,
4747 tsConfig : 'tsconfig.app.json' ,
48- inlineStyleLanguage : 'scss' ,
4948 assets : [ 'src/favicon.ico' , 'src/assets' ] ,
5049 styles : [ 'src/styles.scss' ] ,
51- scripts : [ ] ,
52- buildOptimizer : false ,
5350 optimization : false ,
54- vendorChunk : true ,
5551 extractLicenses : false ,
5652 sourceMap : true ,
57- namedChunks : true ,
5853 } ,
5954 } )
6055
6156 await expectLoadsAngularJson ( projectRoot )
6257 await expectLoadsAngularCLiModules ( projectRoot )
63- await expectGeneratesTsConfig ( devServerConfig , projectConfig . buildOptions , true )
58+ await expectGeneratesTsConfig ( devServerConfig , projectConfig . buildOptions , false )
6459 expectLoadsAngularBuildOptions ( projectConfig . buildOptions )
6560 } )
6661
67- it ( 'sources the config from angular-20 ' , async ( ) => {
68- const projectRoot = await scaffoldMigrationProject ( 'angular-20 ' )
62+ it ( 'sources the config from angular-21 ' , async ( ) => {
63+ const projectRoot = await scaffoldMigrationProject ( 'angular-21 ' )
6964
7065 process . chdir ( projectRoot )
7166 const devServerConfig = {
@@ -87,10 +82,6 @@ describe('angularHandler', { timeout: 60000 }, function () {
8782 sourceRoot : 'src' ,
8883 buildOptions : {
8984 browser : 'src/main.ts' ,
90- // because of the way the main fixtures are configured in the system-test projects, we need to run as a zone.js application
91- polyfills : [
92- 'zone.js' ,
93- ] ,
9485 tsConfig : 'tsconfig.app.json' ,
9586 assets : [ 'src/favicon.ico' , 'src/assets' ] ,
9687 styles : [ 'src/styles.scss' ] ,
0 commit comments