Skip to content

Commit

Permalink
make tests more stable (vercel#58765)
Browse files Browse the repository at this point in the history
### What?

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

Closes PACK-2019
  • Loading branch information
sokra authored Nov 23, 2023
1 parent 31809e4 commit ecde250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/development/jsconfig-path-reloading/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 2 additions & 0 deletions test/development/tsconfig-path-reloading/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ecde250

Please sign in to comment.