|
|
@@ -64,7 +64,11 @@ const LAYOUT_CHILDREN = {
|
|
|
*/
|
|
|
async function bench(nodes: ToolResultNode[]) {
|
|
|
const runtime = await SlotTestRuntime.create()
|
|
|
- runtime.provide('connection', { api: { settings: {} }, isLoopback: false })
|
|
|
+ runtime.provide('connection', {
|
|
|
+ api: { settings: {} },
|
|
|
+ isLoopback: false,
|
|
|
+ hostDescription: { getSnapshot: () => undefined, subscribe: () => () => {} },
|
|
|
+ })
|
|
|
// ui-theme's Appearance row binds a durable scope through these two.
|
|
|
runtime.provide('remote', { $on: () => () => {} })
|
|
|
runtime.provide('settingsScope', { bind: () => stubSettingsScope().scope } as never)
|
|
|
@@ -203,7 +207,11 @@ describe('keyed toolview hole through the real machinery', () => {
|
|
|
describe('registrant declaration injection', () => {
|
|
|
it('runs a registrant before ui-tool and waits on the actual toolview declaration', async () => {
|
|
|
const runtime = await SlotTestRuntime.create()
|
|
|
- runtime.provide('connection', { api: { settings: {} }, isLoopback: false })
|
|
|
+ runtime.provide('connection', {
|
|
|
+ api: { settings: {} },
|
|
|
+ isLoopback: false,
|
|
|
+ hostDescription: { getSnapshot: () => undefined, subscribe: () => () => {} },
|
|
|
+ })
|
|
|
// ui-theme's Appearance row binds a durable scope through these two.
|
|
|
runtime.provide('remote', { $on: () => () => {} })
|
|
|
runtime.provide('settingsScope', { bind: () => stubSettingsScope().scope } as never)
|