seamapi / edgespec

☃️ an API framework for everywhere.
MIT License
5 stars 2 forks source link

Fix dev server race condition #82

Closed codetheweb closed 7 months ago

codetheweb commented 7 months ago

tl;dr: the dev server sometimes read the bundle from the file system before esbuild was finished writing it. This manifested as a flaky test in CI.

The added code looks complex but it turns out there's a lot of race conditions we need to cover.