(input: { directory: string; fn: (ctx: InstanceContext) => R })
| 38 | } |
| 39 | |
| 40 | export async function withTestInstance<R>(input: { directory: string; fn: (ctx: InstanceContext) => R }) { |
| 41 | return input.fn(await InstanceRuntime.load({ directory: input.directory })) |
| 42 | } |
| 43 | |
| 44 | export async function reloadTestInstance(input: { directory: string }) { |
| 45 | return InstanceRuntime.reloadInstance(input) |
no outgoing calls