@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, 04:45 UTC

main
ts 23 lines 698 Bytes
Raw
1 import { expect } from "bun:test";
2 import * as AWS from "@alchemy.run/aws";
3 import * as Test from "@alchemy.run/test/Bun";
4 import * as Alchemy from "alchemy";
5 import * as Effect from "effect/Effect";
6 import Stack from "../alchemy.run.ts";
7
8 const { test, beforeAll, afterAll, deploy, destroy } = Test.make({
9 providers: AWS.providers(),
10 state: Alchemy.localState(),
11 });
12
13 const stack = beforeAll(deploy(Stack));
14 afterAll.skipIf(!!process.env.NO_DESTROY)(destroy(Stack));
15
16 test(
17 "deploys and exposes a url",
18 Effect.gen(function* () {
19 const out = (yield* stack) as unknown;
20 const url = typeof out === "string" ? out : (out as { url: string }).url;
21 expect(url).toBeString();
22 }),
23 );