inital commit, very early alpha stage

This commit is contained in:
2026-06-30 13:38:24 +02:00
parent f5530ad336
commit 70cf1a84ca
72 changed files with 14074 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
import { render, screen } from "@testing-library/react";
import { MemoryRouter } from "react-router-dom";
import { describe, expect, it, vi } from "vitest";
import { App } from "../app/App";
describe("App", () => {
it("renders the shell after dev bootstrap", async () => {
vi.stubGlobal(
"fetch",
vi.fn()
.mockResolvedValueOnce(new Response(JSON.stringify({ authenticated: true, dev_mode: true }), { status: 200 }))
.mockResolvedValueOnce(
new Response(
JSON.stringify({
profile: { primary_display_name: "Anna Müller" },
sections: { needs_me: [], today: [], changed: [], official_updates: [], catch_up: [] },
connections: []
}),
{ status: 200 }
)
)
);
render(
<MemoryRouter initialEntries={["/"]}>
<App />
</MemoryRouter>
);
expect(await screen.findByText("What needs attention")).toBeInTheDocument();
});
});