Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

reactGrabBoundary.test.ts

12 lines505 Bytes

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});