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

main
ts 24 lines 823 Bytes
Raw
1 import * as AWS from "@alchemy.run/aws";
2 import { isNukeableHealthCheck } from "@alchemy.run/aws/Route53/HealthCheck";
3 import { expect } from "@alchemy.run/test";
4 import * as Test from "@alchemy.run/test/Alchemy";
5 import * as Effect from "effect/Effect";
6
7 const { test } = Test.make({ providers: AWS.providers() });
8
9 test(
10 "nuke inventory excludes AWS-service-owned health checks",
11 Effect.sync(() => {
12 expect(isNukeableHealthCheck({})).toBe(true);
13 expect(
14 isNukeableHealthCheck({
15 LinkedService: {
16 ServicePrincipal: "servicediscovery.amazonaws.com",
17 Description: "Cloud Map managed health check",
18 },
19 }),
20 ).toBe(false);
21 expect(isNukeableHealthCheck({ LinkedService: {} })).toBe(false);
22 }),
23 { tags: ["provider:aws", "provider:aws:route53", "live"] },
24 );