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.

520 B
Raw Blame
import { describe, expect, it } from "vite-plus/test";

import packageJson from "../package.json" with { type: "json" };
import mainSource from "./main.tsx?raw";

describe("React Grab runtime boundary", () => {
  it("loads the React Grab overlay only in development", () => {
    expect(mainSource).toMatch(/import\.meta\.env\.DEV[\s\S]*import\(["']react-grab["']\)/);
    expect(packageJson.dependencies).not.toHaveProperty("react-grab");
    expect(packageJson.devDependencies).toHaveProperty("react-grab");
  });
});