()
| 309 | |
| 310 | describe('exports', () => { |
| 311 | function* exports() { |
| 312 | const result = parse(code, ESModuleParser()); |
| 313 | if (!result.success) { |
| 314 | return; |
| 315 | } |
| 316 | |
| 317 | for (const item of result.result as any[]) { |
| 318 | if (item.type === 'export') { |
| 319 | yield item.exported; |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | it('exports b', () => { |
| 325 | expect(Array.from(exports())).toEqual([ |
no test coverage detected