diff options
Diffstat (limited to 'test/cli/hot/hot.test.ts')
-rw-r--r-- | test/cli/hot/hot.test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/cli/hot/hot.test.ts b/test/cli/hot/hot.test.ts index 88c7977f7..7888f0308 100644 --- a/test/cli/hot/hot.test.ts +++ b/test/cli/hot/hot.test.ts @@ -64,11 +64,12 @@ it("should recover from errors", async () => { var queue = [onReloadError, onReloadGood, onReloadError, onReloadGood]; var errors: string[] = []; - var onError; + var onError: (...args: any[]) => void; (async () => { for await (let line of runner.stderr!) { var str = new TextDecoder().decode(line); errors.push(str); + // @ts-ignore onError && onError(str); } })(); |