File tree Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Expand file tree Collapse file tree 2 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 1+ import { getGlobalVariable } from '../../utils/env' ;
12import { expectFileToMatch } from '../../utils/fs' ;
23import { ng } from '../../utils/process' ;
34
45export default async function ( ) {
56 await ng ( 'build' , '--aot=true' ) ;
6- await expectFileToMatch ( 'dist/test-project/main-es5.js' ,
7- / p l a t f o r m B r o w s e r .* b o o t s t r a p M o d u l e F a c t o r y .* A p p M o d u l e N g F a c t o r y / ) ;
8- await expectFileToMatch ( 'dist/test-project/main-es2015.js' ,
9- / p l a t f o r m B r o w s e r .* b o o t s t r a p M o d u l e F a c t o r y .* A p p M o d u l e N g F a c t o r y / ) ;
7+
8+ if ( getGlobalVariable ( 'argv' ) [ 've' ] ) {
9+ await expectFileToMatch ( 'dist/test-project/main-es5.js' ,
10+ / p l a t f o r m B r o w s e r .* b o o t s t r a p M o d u l e F a c t o r y .* A p p M o d u l e N g F a c t o r y / ) ;
11+ await expectFileToMatch ( 'dist/test-project/main-es2015.js' ,
12+ / p l a t f o r m B r o w s e r .* b o o t s t r a p M o d u l e F a c t o r y .* A p p M o d u l e N g F a c t o r y / ) ;
13+ } else {
14+ await expectFileToMatch ( 'dist/test-project/main-es5.js' ,
15+ / p l a t f o r m B r o w s e r .* b o o t s t r a p M o d u l e .* A p p M o d u l e / ) ;
16+ await expectFileToMatch ( 'dist/test-project/main-es2015.js' ,
17+ / p l a t f o r m B r o w s e r .* b o o t s t r a p M o d u l e .* A p p M o d u l e / ) ;
18+ }
1019}
Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ if (!argv.ve) {
9999 // - The test itself is not applicable to Ivy
100100 // As we transition into using Ivy as the default this list should be reassessed.
101101 allTests = allTests
102- // The basic AOT check is different with Ivy and being checked in /experimental/ivy.ts.
103- . filter ( name => ! name . endsWith ( 'tests/basic/aot.ts' ) )
104102 // Ivy doesn't support i18n externally at the moment.
105103 . filter ( name => ! name . includes ( 'tests/i18n/' ) )
106104 . filter ( name => ! name . endsWith ( 'tests/build/aot/aot-i18n.ts' ) )
You can’t perform that action at this time.
0 commit comments