- derive preview partitions through `BrowserSession` - serialize session state and async preview control flow - update tests for screenshot, automation, and partition behavior
13 lines
505 B
TypeScript
13 lines
505 B
TypeScript
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("keeps the host renderer free of the React Grab overlay", () => {
|
|
expect(mainSource).not.toMatch(/import\(["']react-grab["']\)/);
|
|
expect(packageJson.dependencies).not.toHaveProperty("react-grab");
|
|
expect(packageJson.devDependencies).not.toHaveProperty("react-grab");
|
|
});
|
|
});
|