From ecde250698d37ae098b285177997ca8dea12c23c Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 23 Nov 2023 13:48:08 +0100 Subject: [PATCH] make tests more stable (#58765) ### What? We need to give them a bit time to pick up the tsconfig change. Closes PACK-2019 --- test/development/jsconfig-path-reloading/index.test.ts | 2 ++ test/development/tsconfig-path-reloading/index.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/development/jsconfig-path-reloading/index.test.ts b/test/development/jsconfig-path-reloading/index.test.ts index 554a83ab02c1f..137d61dd9a294 100644 --- a/test/development/jsconfig-path-reloading/index.test.ts +++ b/test/development/jsconfig-path-reloading/index.test.ts @@ -43,6 +43,8 @@ describe('jsconfig-path-reloading', () => { if (addAfterStart) { await next.patchFile(tsConfigFile, tsConfigContent) + // wait a bit for the file watcher to pick up the change + await new Promise((resolve) => setTimeout(resolve, 200)) } }) afterAll(() => next.destroy()) diff --git a/test/development/tsconfig-path-reloading/index.test.ts b/test/development/tsconfig-path-reloading/index.test.ts index 551adc459d4a1..ca1e12524bec4 100644 --- a/test/development/tsconfig-path-reloading/index.test.ts +++ b/test/development/tsconfig-path-reloading/index.test.ts @@ -43,6 +43,8 @@ describe('tsconfig-path-reloading', () => { if (addAfterStart) { await next.patchFile(tsConfigFile, tsConfigContent) + // wait a bit for the file watcher to pick up the change + await new Promise((resolve) => setTimeout(resolve, 200)) } }) afterAll(() => next.destroy())