fix(webui): restore full-project typechecking
This commit is contained in:
1 parent
f869212e7d
commit
a1bca7dc50
56 files changed
+622
-583
No files matched your search
@@ -172,7 +172,7 @@ describe("temporary chat navigation", () => {
|
||||
await screen.findByRole("button", { name: "Temporary chat" });
|
||||
act(() => TestSocket.current.open());
|
||||
await selectTopic("Regular topic");
|
||||
fireEvent.click(screen.getByRole("button", { name: "Settings", exact: true }));
|
||||
fireEvent.click(screen.getByRole("button", { name: "Settings" }));
|
||||
await screen.findByRole("button", { name: "Back to chat" });
|
||||
expect(window.location.hash).toBe("#/settings");
|
||||
first.unmount();
|
||||
@@ -191,7 +191,7 @@ describe("temporary chat navigation", () => {
|
||||
await screen.findByRole("button", { name: "Temporary chat" });
|
||||
act(() => TestSocket.current.open());
|
||||
const chatId = await startTemporaryChat("Temporary navigation check");
|
||||
fireEvent.click(screen.getByRole("button", { name: "Settings", exact: true }));
|
||||
fireEvent.click(screen.getByRole("button", { name: "Settings" }));
|
||||
await screen.findByRole("button", { name: "Back to chat" });
|
||||
expect(window.location.hash).toBe("#/settings");
|
||||
act(() => TestSocket.current.receive({ event: "message", chat_id: chatId, text: "Reply while in settings" }));
|
||||
@@ -405,7 +405,9 @@ describe("temporary chat navigation", () => {
|
||||
}));
|
||||
fireEvent.click(await screen.findByRole("button", { name: "notes.txt" }));
|
||||
await screen.findByText("Preview of notes.txt");
|
||||
const store = update.mock.contexts.find((value) => value.get(`websocket:${chatId}`).tabs.length)!;
|
||||
const store = update.mock.contexts.find((value): value is FilePreviewStore =>
|
||||
value instanceof FilePreviewStore && value.get(`websocket:${chatId}`).tabs.length > 0,
|
||||
)!;
|
||||
expect(store.get(`websocket:${chatId}`).activeId).toBe("file:notes.txt");
|
||||
await selectTopic("Close temporary chat: Show example files");
|
||||
expect(store.get(`websocket:${chatId}`).tabs).toEqual([]);
|
||||
|
||||
Reference in new issue
Block a user