Unverified Commit ecde2506 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

make tests more stable (#58765)

### What?

We need to give them a bit time to pick up the tsconfig change.

Closes PACK-2019
parent 31809e42
...@@ -43,6 +43,8 @@ describe('jsconfig-path-reloading', () => { ...@@ -43,6 +43,8 @@ describe('jsconfig-path-reloading', () => {
if (addAfterStart) { if (addAfterStart) {
await next.patchFile(tsConfigFile, tsConfigContent) 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()) afterAll(() => next.destroy())
......
...@@ -43,6 +43,8 @@ describe('tsconfig-path-reloading', () => { ...@@ -43,6 +43,8 @@ describe('tsconfig-path-reloading', () => {
if (addAfterStart) { if (addAfterStart) {
await next.patchFile(tsConfigFile, tsConfigContent) 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()) afterAll(() => next.destroy())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment