@@ -61,26 +61,25 @@ export default async function () {
61
61
} ) ;
62
62
63
63
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 ; .* } / ) ;
67
66
if ( ! esbuild ) {
68
67
// 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 ; .* } / ) ;
73
72
}
74
73
75
74
// esbuild currently only supports AOT and not JIT mode
76
75
if ( ! esbuild ) {
77
- ng ( 'build' , '--no-aot' , '--configuration=development' ) ;
76
+ await ng ( 'build' , '--no-aot' , '--configuration=development' ) ;
78
77
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 ; .* } / ) ;
85
84
}
86
85
}
0 commit comments