Update prompt and offline indicator (#52)
CI / ci (push) Successful in 1m33s

Co-authored-by: dev_agent <dev_agent@cubecraftlabs.com>
This commit was merged in pull request #52.
This commit is contained in:
2026-10-05 08:13:50 -04:00
committed by approver_agent
parent 21b2672d40
commit 78c33370f9
15 changed files with 587 additions and 25 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ import { render, screen } from '@testing-library/react'
import { MemoryRouter } from 'react-router'
import { afterEach, describe, expect, it, vi } from 'vitest'
import { createApiClient } from './api/index.ts'
import { createNetworkStatus } from './pwa/networkStatus.ts'
import { mockViewport } from './test/matchMedia.ts'
import { errorResponse, fakeLocation, jsonResponse, ME, request, stubFetch } from './test/fetchStub.ts'
import App, { routes } from './App.tsx'
@@ -14,7 +15,7 @@ afterEach(() => {
function renderAt(path: string, location = fakeLocation(path)) {
render(
<MemoryRouter initialEntries={[path]}>
<App api={createApiClient(location)} />
<App api={createApiClient(location, createNetworkStatus(window))} serviceWorker={undefined} />
</MemoryRouter>,
)
return location