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())