Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.1 KB
Raw Blame
import * as AWS from "@/AWS";
import { Manifest } from "@/AWS/EKS/Manifest.ts";
import * as Provider from "@/Provider";
import * as Test from "@/Test/Alchemy";
import { expect } from "alchemy-test";
import * as Effect from "effect/Effect";

const testOptions = { providers: AWS.providers() };
const { test } = Test.make(testOptions);

// Ungated probe: `Manifest` applies in-cluster objects that have no AWS-side
// enumeration attributing them to alchemy, so `list()` is intentionally
// empty. The probe proves the provider is registered and its record
// type-checks. The full apply path shares the live-cluster budget problem of
// every EKS platform test (a control-plane create is ~15 min), so lifecycle
// coverage rides the gated Deployment E2E cluster rather than paying for its
// own; see Deployment.test.ts.
test.provider("list returns an empty array (in-cluster objects)", () =>
  Effect.gen(function* () {
    const provider = yield* Provider.findProvider(Manifest);
    const all = yield* provider.list();
    expect(Array.isArray(all)).toBe(true);
    expect(all).toEqual([]);
  }),
);