()
| 130 | ]); |
| 131 | |
| 132 | function* makeValidOptions(): Generator<[string, string]> { |
| 133 | const validOptions = Object.values(SeverityLevel).filter(option => |
| 134 | ['error', 'warn', 'info', 'debug', 'trace'].includes(option) |
| 135 | ); |
| 136 | for (const option of validOptions) { |
| 137 | yield [option, option]; |
| 138 | yield [option.toUpperCase(), option]; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | const invalidOptions = ['', 'invalid-string']; |
| 143 | const validNonDefaultOptions = new Map(makeValidOptions()); |
no test coverage detected