(kind: string)
| 12350 | it('should extract classes, modules, interfaces, structures, and enums', () => { |
| 12351 | const result = extractFromSource('Invoice.vb', SAMPLE); |
| 12352 | const kinds = (kind: string) => result.nodes.filter((n) => n.kind === kind).map((n) => n.name); |
| 12353 | expect(kinds('class')).toEqual(expect.arrayContaining(['EntityBase', 'Invoice', 'Helpers'])); |
| 12354 | expect(kinds('interface')).toContain('IRepository'); |
| 12355 | expect(kinds('struct')).toContain('Money'); |