ChicoState / ChicoState/alarmflow

`showAlertAsync` defers `Alert.alert` invocation by a microtask, breaking synchronous expectations

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Failing tests (5): All tests in AlarmScheduler.test.tsx › showAlertAsync.

What the tests assert: After calling showAlertAsync(...), Alert.alert should already have been invoked synchronously (so callers, including the next queued caller, observe a single visible alert on the same frame).

What actually happens: The first showAlertAsync call returns without ever invoking Alert.alert in the current tick. alertSpy.mock.calls[0] is undefined when the assertion runs.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.