shipfeedAI news, curated daily

00:36:48 CET
21 MAY00:36:48shipfeed
pull to refreshlast sync
Just in — 30 new
§ feed · storyline

Stress testing Biome's noFloatingPromises lint rule

Vercel partners with Biome to stress test the noFloatingPromises lint rule, which flags unhandled promises that can cause silent errors and unpredictable behaviour.

Sep 4 · · primary fetch1 sourceupdated Sep 4 ·

Recently we with the team to strengthen their to catch more subtle edge cases. This rule prevents unhandled Promises, which can cause silent errors and unpredictable behavior. Once Biome had an early version ready, they asked if we could help stress test it with some test cases.partneredBiomelint rulenoFloatingPromises At Vercel, we know good tests require creativity just as much as attention to detail.

To ensure strong coverage, we wanted to stretch the rule to its limits and so we thought it would be fun to turn this into a friendly internal competition. Who could come up with the trickiest examples that would still break the updated lint rule? Part of the fun was learning together, but before we dive into the snippets, let’s revisit what makes a Promise “float”. Read more

read full article on vercel.com
§ sources1 publication · timeline below
  1. vercel.comStress testing Biome's noFloatingPromises lint ruleprimary