(items: string[][])
| 45 | } |
| 46 | |
| 47 | const getCombinations = (items: string[][]): string[][] => { |
| 48 | if (!items.length) return [[]] |
| 49 | const [first, ...rest] = items |
| 50 | const children = getCombinations(rest) |
| 51 | return first.flatMap((value) => |
| 52 | children.map((child) => [...value.split(' '), ...child]) |
| 53 | ) |
| 54 | } |
| 55 | |
| 56 | const flagCombinations = getCombinations(Object.values(allFlagValues)) |
| 57 | const testCases = flagCombinations.map((flags) => ({ |
no test coverage detected