MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / makeNodes

Function makeNodes

frontend/app/treeview/treeview.test.ts:7–9  ·  view source on GitHub ↗
(entries: TreeNodeData[])

Source from the content-addressed store, hash-verified

5import { describe, expect, it } from "vitest";
6
7function makeNodes(entries: TreeNodeData[]): Map<string, TreeNodeData> {
8 return new Map(entries.map((entry) => [entry.id, entry]));
9}
10
11describe("treeview visible rows", () => {
12 it("sorts directories before files and alphabetically", () => {

Callers 1

treeview.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected