Skip to content

Commit 747a55f

Browse files
committed
test: fix flaky rebuild-deps-test
This test is flaky because writing a file right after rebuilds are done can cause webpack to not detect the change.
1 parent 4cd714d commit 747a55f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/e2e/tests/build/rebuild-deps-type-check.ts

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default function() {
4141
// Should trigger a rebuild, no error expected.
4242
.then(() => execAndWaitForOutputToMatch('ng', ['serve'], doneRe))
4343
// Make an invalid version of the file.
44+
.then(() => wait(2000))
4445
.then(() => writeFile('src/funky2.ts', `
4546
export function funky2(value: number): number {
4647
return value + 1;
@@ -66,6 +67,7 @@ export default function() {
6667
}
6768
})
6869
// Fix the error!
70+
.then(() => wait(2000))
6971
.then(() => writeFile('src/funky2.ts', `
7072
export function funky2(value: string): string {
7173
return value + 'hello';

0 commit comments

Comments
 (0)