MCPcopy
hub / github.com/jestjs/jest / convertTableToTemplates

Function convertTableToTemplates

packages/jest-each/src/table/template.ts:38–44  ·  view source on GitHub ↗
(
  table: Global.Table,
  headings: Headings,
)

Source from the content-addressed store, hash-verified

36 );
37
38const convertTableToTemplates = (
39 table: Global.Table,
40 headings: Headings,
41): Templates =>
42 table.map(row =>
43 Object.fromEntries(row.map((value, index) => [headings[index], value])),
44 );

Callers 1

templateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected