15 lines
448 B
TypeScript
15 lines
448 B
TypeScript
import { renderToStaticMarkup } from "react-dom/server";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
import { App } from "./App";
|
|
|
|
describe("App", () => {
|
|
it("renders a visible authentication loading state before the session resolves", () => {
|
|
const html = renderToStaticMarkup(<App />);
|
|
|
|
expect(html).toContain("正在加载身份状态");
|
|
expect(html).toContain("auth-shell");
|
|
expect(html).not.toContain("blank");
|
|
});
|
|
});
|