chore: upgrade vitest (#1091)

* chore: upgrade vitest

* chore: sync lock
This commit is contained in:
Matteo Pietro Dazzi
2026-05-20 12:14:13 +00:00
committed by GitHub
parent c88f6fb2c2
commit e58ea31d6d
14 changed files with 1817 additions and 323 deletions
+5 -3
View File
@@ -135,6 +135,8 @@ function queryRowIds(): string[] {
).map((node) => node.getAttribute("data-testid")?.replace("subagents-section-row-", "") ?? "");
}
type SubagentAction = (id: string) => void;
describe("SubagentsSection", () => {
let container: HTMLElement | null = null;
let root: Root | null = null;
@@ -169,9 +171,9 @@ describe("SubagentsSection", () => {
function render(
rows: SubagentRow[],
onOpenSubagent: ReturnType<typeof vi.fn> = vi.fn(),
onArchiveSubagent: ReturnType<typeof vi.fn> = vi.fn(),
): ReturnType<typeof vi.fn> {
onOpenSubagent: SubagentAction = vi.fn<SubagentAction>(),
onArchiveSubagent: SubagentAction = vi.fn<SubagentAction>(),
): SubagentAction {
act(() => {
root?.render(
<SubagentsSection