@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 16 lines 430 Bytes
Raw
1 import type { ResourceContext } from "alchemy/ResourceContext";
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 });