@@ -45,6 +45,7 @@ export default async function () {
4545 // Build each locale and verify the output.
4646 await ng ( 'build' ) ;
4747 for ( const { lang, outputPath } of langTranslations ) {
48+ // @ts -ignore
4849 if ( baseHrefs [ lang ] === undefined ) {
4950 throw new Error ( 'Invalid E2E test setup: unexpected locale ' + lang ) ;
5051 }
@@ -53,18 +54,21 @@ export default async function () {
5354 await expectFileToMatch ( `${ outputPath } /index.html` , `lang="${ lang } "` ) ;
5455
5556 // Verify the HTML base HREF attribute is present
57+ // @ts -ignore
5658 await expectFileToMatch ( `${ outputPath } /index.html` , `href="${ baseHrefs [ lang ] || '/' } "` ) ;
5759
5860 // Execute Application E2E tests with dev server
5961 await ng ( 'e2e' , `--configuration=${ lang } ` , '--port=0' ) ;
6062
6163 // Execute Application E2E tests for a production build without dev server
64+ // @ts -ignore
6265 const server = externalServer ( outputPath , baseHrefs [ lang ] || '/' ) ;
6366 try {
6467 await ng (
6568 'e2e' ,
6669 `--configuration=${ lang } ` ,
6770 '--dev-server-target=' ,
71+ // @ts -ignore
6872 `--base-url=http://localhost:4200${ baseHrefs [ lang ] || '/' } ` ,
6973 ) ;
7074 } finally {
@@ -83,18 +87,21 @@ export default async function () {
8387 await ng ( 'build' , '--configuration=development' ) ;
8488 for ( const { lang, outputPath } of langTranslations ) {
8589 // Verify the HTML base HREF attribute is present
90+ // @ts -ignore
8691 await expectFileToMatch ( `${ outputPath } /index.html` , `href="/test${ baseHrefs [ lang ] || '/' } "` ) ;
8792
8893 // Execute Application E2E tests with dev server
8994 await ng ( 'e2e' , `--configuration=${ lang } ` , '--port=0' ) ;
9095
9196 // Execute Application E2E tests for a production build without dev server
97+ // @ts -ignore
9298 const server = externalServer ( outputPath , '/test' + ( baseHrefs [ lang ] || '/' ) ) ;
9399 try {
94100 await ng (
95101 'e2e' ,
96102 `--configuration=${ lang } ` ,
97103 '--dev-server-target=' ,
104+ // @ts -ignore
98105 `--base-url=http://localhost:4200/test${ baseHrefs [ lang ] || '/' } ` ,
99106 ) ;
100107 } finally {
@@ -108,6 +115,7 @@ export default async function () {
108115 // Verify the HTML base HREF attribute is present
109116 await expectFileToMatch (
110117 `${ outputPath } /index.html` ,
118+ // @ts -ignore
111119 `href="http://www.domain.com${ baseHrefs [ lang ] || '/' } "` ,
112120 ) ;
113121 }
0 commit comments