(options: SessionConfigOption[] | null | undefined, id: string)
| 76 | } |
| 77 | |
| 78 | export function expectSelectOption(options: SessionConfigOption[] | null | undefined, id: string) { |
| 79 | const option = selectConfigOption(options, id) |
| 80 | expect(option).toBeDefined() |
| 81 | return option! |
| 82 | } |
| 83 | |
| 84 | export function expectAlternateValue(option: ReturnType<typeof expectSelectOption>) { |
| 85 | const value = flattenSelectOptions(option).find((item) => item.value !== option.currentValue)?.value |
no test coverage detected