File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/legacy-cli/e2e/tests/basic Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { setTimeout } from 'node:timers/promises' ;
1
2
import { getGlobalVariable } from '../../utils/env' ;
2
3
import { appendToFile , replaceInFile , writeMultipleFiles } from '../../utils/fs' ;
3
4
import { silentNg , waitForAnyProcessOutputToMatch } from '../../utils/process' ;
@@ -27,6 +28,7 @@ export default async function () {
27
28
] ) ;
28
29
29
30
// Change multiple files and check that all of them are invalidated and recompiled.
31
+ await setTimeout ( 500 ) ;
30
32
await Promise . all ( [
31
33
waitForAnyProcessOutputToMatch ( validBundleRegEx ) ,
32
34
appendToFile (
@@ -46,6 +48,7 @@ export default async function () {
46
48
) ,
47
49
] ) ;
48
50
51
+ await setTimeout ( 500 ) ;
49
52
await Promise . all ( [
50
53
waitForAnyProcessOutputToMatch ( validBundleRegEx ) ,
51
54
writeMultipleFiles ( {
@@ -74,6 +77,7 @@ export default async function () {
74
77
}
75
78
}
76
79
80
+ await setTimeout ( 500 ) ;
77
81
await Promise . all ( [
78
82
waitForAnyProcessOutputToMatch ( validBundleRegEx ) ,
79
83
writeMultipleFiles ( {
@@ -89,6 +93,7 @@ export default async function () {
89
93
}
90
94
}
91
95
96
+ await setTimeout ( 500 ) ;
92
97
await Promise . all ( [
93
98
waitForAnyProcessOutputToMatch ( validBundleRegEx ) ,
94
99
writeMultipleFiles ( {
@@ -104,6 +109,7 @@ export default async function () {
104
109
}
105
110
}
106
111
112
+ await setTimeout ( 500 ) ;
107
113
await Promise . all ( [
108
114
waitForAnyProcessOutputToMatch ( validBundleRegEx ) ,
109
115
writeMultipleFiles ( {
You can’t perform that action at this time.
0 commit comments