Refresh hooks when refreshing extensions. (#14918)

This commit is contained in:
Tommaso Sciortino
2025-12-12 16:43:46 -08:00
committed by GitHub
parent 977248e095
commit 126c32aca4
9 changed files with 26 additions and 107 deletions
+2 -7
View File
@@ -195,17 +195,12 @@ export class InteractiveRun {
if (!timeout) {
timeout = getDefaultTimeout();
}
const found = await poll(
await poll(
() => stripAnsi(this.output).toLowerCase().includes(text.toLowerCase()),
timeout,
200,
);
expect(
found,
`Did not find expected text: "${text}". Output was:\n${stripAnsi(
this.output,
)}`,
).toBe(true);
expect(stripAnsi(this.output).toLowerCase()).toContain(text.toLowerCase());
}
// This types slowly to make sure command is correct, but only work for short