first commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user