Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tests/legacy-cli/e2e/tests/basic/rebuild.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { setTimeout } from 'node:timers/promises';
import { getGlobalVariable } from '../../utils/env';
import { appendToFile, replaceInFile, writeMultipleFiles } from '../../utils/fs';
import { silentNg, waitForAnyProcessOutputToMatch } from '../../utils/process';
Expand Down Expand Up @@ -27,6 +28,7 @@ export default async function () {
]);

// Change multiple files and check that all of them are invalidated and recompiled.
await setTimeout(500);
await Promise.all([
waitForAnyProcessOutputToMatch(validBundleRegEx),
appendToFile(
Expand All @@ -46,6 +48,7 @@ export default async function () {
),
]);

await setTimeout(500);
await Promise.all([
waitForAnyProcessOutputToMatch(validBundleRegEx),
writeMultipleFiles({
Expand Down Expand Up @@ -74,6 +77,7 @@ export default async function () {
}
}

await setTimeout(500);
await Promise.all([
waitForAnyProcessOutputToMatch(validBundleRegEx),
writeMultipleFiles({
Expand All @@ -89,6 +93,7 @@ export default async function () {
}
}

await setTimeout(500);
await Promise.all([
waitForAnyProcessOutputToMatch(validBundleRegEx),
writeMultipleFiles({
Expand All @@ -104,6 +109,7 @@ export default async function () {
}
}

await setTimeout(500);
await Promise.all([
waitForAnyProcessOutputToMatch(validBundleRegEx),
writeMultipleFiles({
Expand Down