mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
4fdf617004
* perf(cache): isolate handler and request state * perf(rsc): isolate page cache key marker
17 lines
561 B
TypeScript
17 lines
561 B
TypeScript
import { describe, expect, it } from "vite-plus/test";
|
|
import { readFile } from "node:fs/promises";
|
|
|
|
const appPageProbePath = new URL(
|
|
"../packages/vinext/src/server/app-page-probe.ts",
|
|
import.meta.url,
|
|
);
|
|
|
|
describe("app page probe cold runtime", () => {
|
|
it("does not load the full use cache runtime for page props marking", async () => {
|
|
const source = await readFile(appPageProbePath, "utf8");
|
|
|
|
expect(source).toContain("vinext/shims/internal/app-page-props-cache-key");
|
|
expect(source).not.toContain("vinext/shims/cache-runtime");
|
|
});
|
|
});
|