MCPcopy
hub / github.com/CodebuffAI/codebuff / createTestItems

Function createTestItems

cli/src/components/__tests__/selectable-list.test.ts:43–47  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

41
42 describe('list behavior logic', () => {
43 const createTestItems = (count: number): SelectableListItem[] =>
44 Array.from({ length: count }, (_, i) => ({
45 id: `item-${i}`,
46 label: `Item ${i}`,
47 }))
48
49 describe('highlighting logic', () => {
50 it('should identify focused item correctly', () => {

Callers 1

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected