async def METHOD_NAME():
    """This tests that timers in screens outside the active stack keep going."""
    pings = []
    class FastCounter(Screen[None]):
        def compose(self) -> ComposeResult:
            yield Label("fast")
        def on_mount(self) -> None:
            self.call_later(self.set_interval, 0.01, self.ping)
        def ping(self) -> None:
            pings.append(str(self.app.query_one(Label).renderable))
        def key_s(self):
            self.app.switch_mode("smile")
    class SmileScreen(Screen[None]):
        def compose(self) -> ComposeResult:
            yield Label(":)")
        def key_s(self):
            self.app.switch_mode("fast")
    class ModesApp(App[None]):
        MODES = {
            "fast": FastCounter,
            "smile": SmileScreen,
        }
        def on_mount(self) -> None:
            self.switch_mode("fast")
    app = ModesApp()
    async with app.run_test() as pilot:
        await pilot.press("s")
        assert str(app.query_one(Label).renderable) == ":)"
        await pilot.press("s")
        assert ":)" in pings