Open History to see the last commit
1import { describe, expect, it } from "vite-plus/test";
2
3import packageJson from "../package.json" with { type: "json" };
4import mainSource from "./main.tsx?raw";
5
6describe("React Grab runtime boundary", () => {
7 it("keeps the host renderer free of the React Grab overlay", () => {
8 expect(mainSource).not.toMatch(/import\(["']react-grab["']\)/);
9 expect(packageJson.dependencies).not.toHaveProperty("react-grab");
10 expect(packageJson.devDependencies).not.toHaveProperty("react-grab");
11 });
12});