(stringIds, wildcardItems)
| 9 | // Build a paths fixture that matches the layout crawling output |
| 10 | // (paths.strs for string ids, paths.objs for wildcard ids). |
| 11 | function makePaths(stringIds, wildcardItems) { |
| 12 | const paths = { |
| 13 | strs: {}, |
| 14 | objs: {}, |
| 15 | events: new EventEmitter() |
| 16 | }; |
| 17 | stringIds.forEach(id => { |
| 18 | paths.strs[id] = ['props', 'children', 0]; |
| 19 | }); |
| 20 | Object.entries(wildcardItems || {}).forEach(([keyStr, items]) => { |
| 21 | paths.objs[keyStr] = items.map((values, i) => ({ |
| 22 | values, |
| 23 | path: ['props', 'children', i] |
| 24 | })); |
| 25 | }); |
| 26 | return paths; |
| 27 | } |
| 28 | |
| 29 | describe('dependencies — MATCH validation (#2462)', () => { |
| 30 | let errors; |
no outgoing calls
no test coverage detected
searching dependent graphs…