(
properties: Array<{ label?: string; value: unknown }>,
)
| 90 | } |
| 91 | |
| 92 | function toPropertyMap( |
| 93 | properties: Array<{ label?: string; value: unknown }>, |
| 94 | ): Map<string, unknown> { |
| 95 | return new Map( |
| 96 | properties |
| 97 | .filter( |
| 98 | (property): property is { label: string; value: unknown } => |
| 99 | typeof property.label === 'string', |
| 100 | ) |
| 101 | .map(property => [property.label, property.value]), |
| 102 | ) |
| 103 | } |
| 104 | |
| 105 | beforeEach(async () => { |
| 106 | tempConfigDir = await mkdtemp(join(tmpdir(), 'ncode-status-')) |