react-server675fbba4
react-serverfilestest__test__appsdocs.spec.mjs
test/__test__/apps/docs.spec.mjsmjs397 Bc354061d
import { appDir, hostname, page, server } from "playground/utils";
import { expect, test } from "vitest";

test(
  "docs load",
  {
    timeout: 120000,
  },
  async () => {
    await server(null, { timeout: 120000, cwd: appDir("docs") });
    await page.goto(hostname);
    await page.waitForLoadState("networkidle");

    expect(await page.textContent("body")).toContain("react-server");
  }
);