feat: initialize TJWater WebGIS frontend

This commit is contained in:
2026-07-21 18:31:08 +08:00
commit ad5e5d3133
191 changed files with 37963 additions and 0 deletions
@@ -0,0 +1,17 @@
import { readFileSync } from "node:fs";
import { join } from "node:path";
import { describe, expect, it } from "vitest";
describe("StreamingTokenResponse", () => {
it("renders the backend-smoothed stream without a second timer buffer", () => {
const source = readFileSync(
join(process.cwd(), "src/features/agent/components/streaming-token-response.tsx"),
"utf8"
);
expect(source).not.toContain("setInterval");
expect(source).not.toContain("useState");
expect(source).not.toContain("streaming-token-response-state");
expect(source).toContain("{content}");
});
});