test(app-boot): unlink hmr alias junctions before removing the target

This commit is contained in:
Huanqi Cao
2026-08-12 11:19:01 +08:00
parent 709912b788
commit e37af006c5
@@ -62,7 +62,7 @@ describe('HMR exact config paths', () => {
expect(cacheHas).toHaveBeenCalledWith(expected)
} finally {
await ctx.fiber.dispose()
rmSync(alias, { force: true })
unlinkSync(alias)
rmSync(target, { recursive: true, force: true })
}
})
@@ -78,7 +78,7 @@ describe('HMR exact config paths', () => {
.rejects.toThrow('config path already registered')
} finally {
await ctx.fiber.dispose()
rmSync(alias, { force: true })
unlinkSync(alias)
rmSync(target, { recursive: true, force: true })
}
})