(people: Person[])
| 9 | type PersonColumn = ColumnDef<Person, string | number | Person[] | undefined> |
| 10 | |
| 11 | function generateColumns(people: Person[]): PersonColumn[] { |
| 12 | const columnHelper = createColumnHelper<Person>() |
| 13 | const person = people[0] |
| 14 | return Object.keys(person).map(key => { |
| 15 | const typedKey = key as personKeys |
| 16 | return columnHelper.accessor(typedKey, { id: typedKey }) |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | describe('#getGroupedRowModel', () => { |
| 21 | it('groups 50k rows and 3 grouped columns with clustered data in less than 5 seconds', () => { |
no test coverage detected
searching dependent graphs…