refactor(cli): define server connection boundary (#37133)
This commit is contained in:
parent
e8bd386973
commit
f5dd181443
14 changed files with 250 additions and 121 deletions
|
|
@ -65,10 +65,11 @@ async function mount(
|
|||
const ready = new Promise<void>((resolve) => {
|
||||
done = resolve
|
||||
})
|
||||
const service = reconnect ? { reconnect, restart: () => Promise.resolve() } : undefined
|
||||
|
||||
const app = await testRender(() => (
|
||||
<TestTuiContexts log={log}>
|
||||
<ClientProvider api={createApi(calls.fetch)} reconnect={reconnect}>
|
||||
<ClientProvider api={createApi(calls.fetch)} service={service}>
|
||||
<Probe
|
||||
onReady={(ctx) => {
|
||||
client = ctx.client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue