MCPcopy
hub / github.com/mongodb/node-mongodb-native / makeValidOptions

Function makeValidOptions

test/unit/mongo_logger.test.ts:132–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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());

Callers 1

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected