Browse Source

Merge branch 'worktree/ci-native-windows-20260808' into worktree/ci-native-windows-coverage-20260808

Tianyi Cui 2 months ago
parent
commit
7e6f13de9a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/boot/app-boot/tests/hmr-config.spec.ts

+ 2 - 1
packages/boot/app-boot/tests/hmr-config.spec.ts

@@ -42,7 +42,8 @@ describe('HMR exact config paths', () => {
       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')
         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)
     } finally {