fix(native): new lint warnings and the MapLibre protocol type after the dev merge

Awaits that sat in loops in the native-auth tests run together, the hand-off hook marks its navigations as ignored, the native tests drop their non-null assertions, and the offline protocol answers with the data type MapLibre 6.15 expects.
This commit is contained in:
Maurice
2026-10-25 17:16:02 +01:00
parent 8b6a65023f
commit a3b04887a1
6 changed files with 17 additions and 15 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ vi.mock('../sync/networkMode', () => ({ isEffectivelyOffline: vi.fn() }))
function backButtonHandler(): (event: { canGoBack: boolean }) => void {
const call = vi.mocked(App.addListener).mock.calls.find(([name]) => name === 'backButton')
return call![1] as unknown as (event: { canGoBack: boolean }) => void
if (!call) throw new Error('no backButton listener')
return call[1] as unknown as (event: { canGoBack: boolean }) => void
}
beforeEach(() => {