MCPcopy Index your code
hub / github.com/JavaScriptRegenerated/yieldparser / exports

Function exports

src/modules.test.ts:311–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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([

Callers 1

modules.test.tsFile · 0.85

Calls 2

parseFunction · 0.90
ESModuleParserFunction · 0.85

Tested by

no test coverage detected