KamoCRM

Stop the prescribing-disclosure test being flaky

Otherkamo-internal
Shipped
27 ஆகஸ்ட், 2026 அன்று 4:47 PM UTC
Author
Kamo
Commit
f004520

It passed alone and failed inside the full suite. The effect calls **************** and sets state in a .then(), so settling the mock's promise, running the continuation and committing the re-render take more microtask turns than the render act() alone drains -- which only shows up when the machine is loaded. A flaky test is worse than no test here, because the failure teaches people to re-run rather than to look, and what this one guards is a prescriber being told a drug was checked against the patient's other medications when it was not. Stress-checked 10/10 in isolation and green in a full run.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing