Merge branch 'worktree/ci-native-windows-20260808' into worktree/ci-native-windows-coverage-20260808
This commit is contained in:
@@ -42,7 +42,8 @@ describe('HMR exact config paths', () => {
|
|||||||
for (let generation = 1; !observed.includes(expected); generation += 1) {
|
for (let generation = 1; !observed.includes(expected); generation += 1) {
|
||||||
if (Date.now() >= deadline) throw new Error('HMR did not observe a module change through the alias')
|
if (Date.now() >= deadline) throw new Error('HMR did not observe a module change through the alias')
|
||||||
writeFileSync(filename, `export const generation = ${generation}\n`)
|
writeFileSync(filename, `export const generation = ${generation}\n`)
|
||||||
await new Promise(resolve => setTimeout(resolve, 20))
|
// Leave Chokidar's atomic-write window idle so one coalesced change can publish.
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 250))
|
||||||
}
|
}
|
||||||
expect(cacheHas).toHaveBeenCalledWith(expected)
|
expect(cacheHas).toHaveBeenCalledWith(expected)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user