The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type { ResourceContext } from "@/ResourceContext.ts"; |
| 2 | |
| 3 | /** |
| 4 | * A {@link ResourceContext} for tests that call a provider lifecycle method |
| 5 | * or `createPhysicalName` directly, outside the engine (which normally |
| 6 | * provides it). |
| 7 | */ |
| 8 | export const resourceContext = ( |
| 9 | instanceId: string, |
| 10 | logicalId = "Resource", |
| 11 | ): ResourceContext["Service"] => ({ |
| 12 | logicalId, |
| 13 | fqn: logicalId, |
| 14 | instanceId, |
| 15 | type: "Test.Resource", |
| 16 | }); |