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' ;
1
2
import { expectFileToMatch } from '../../utils/fs' ;
2
3
import { ng } from '../../utils/process' ;
3
4
4
5
export default async function ( ) {
5
6
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
+ }
10
19
}
Original file line number Diff line number Diff line change @@ -99,8 +99,6 @@ if (!argv.ve) {
99
99
// - The test itself is not applicable to Ivy
100
100
// As we transition into using Ivy as the default this list should be reassessed.
101
101
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' ) )
104
102
// Ivy doesn't support i18n externally at the moment.
105
103
. filter ( name => ! name . includes ( 'tests/i18n/' ) )
106
104
. filter ( name => ! name . endsWith ( 'tests/build/aot/aot-i18n.ts' ) )
You can’t perform that action at this time.
0 commit comments