@@ -61,26 +61,25 @@ export default async function () {
6161 } ) ;
6262
6363 await ng ( 'build' , '--configuration=development' ) ;
64-
65- expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) ;
66- expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) ;
64+ await expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) ;
65+ await expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) ;
6766 if ( ! esbuild ) {
6867 // These checks are for the less and stylus files
69- expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) ;
70- expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) ;
71- expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) ;
72- expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ;
68+ await expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) ;
69+ await expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) ;
70+ await expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) ;
71+ await expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ;
7372 }
7473
7574 // esbuild currently only supports AOT and not JIT mode
7675 if ( ! esbuild ) {
77- ng ( 'build' , '--no-aot' , '--configuration=development' ) ;
76+ await ng ( 'build' , '--no-aot' , '--configuration=development' ) ;
7877
79- expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) ;
80- expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) ;
81- expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) ;
82- expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) ;
83- expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) ;
84- expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ;
78+ await expectFileToMatch ( 'dist/test-project/styles.css' , / h 1 \s * { \s * c o l o r : r e d ; \s * } / ) ;
79+ await expectFileToMatch ( 'dist/test-project/main.js' , / h 2 .* { .* c o l o r : r e d ; .* } / ) ;
80+ await expectFileToMatch ( 'dist/test-project/styles.css' , / h 3 \s * { \s * c o l o r : # 0 0 8 0 0 0 ; \s * } / ) ;
81+ await expectFileToMatch ( 'dist/test-project/main.js' , / h 4 .* { .* c o l o r : # 0 0 8 0 0 0 ; .* } / ) ;
82+ await expectFileToMatch ( 'dist/test-project/styles.css' , / h 5 \s * { \s * c o l o r : # A D D A D D ; \s * } / ) ;
83+ await expectFileToMatch ( 'dist/test-project/main.js' , / h 6 .* { .* c o l o r : # A D D A D D ; .* } / ) ;
8584 }
8685}
0 commit comments