@stryker-mutator/core
Version:
The extendable JavaScript mutation testing framework
16 lines (13 loc) • 403 B
text/typescript
import { LogLevel } from '@stryker-mutator/api/core';
export const logLevelPriority = Object.freeze({
[]: 0,
[]: 1,
[]: 2,
[]: 3,
[]: 4,
[]: 5,
[]: 6,
});
export function minPriority(a: LogLevel, b: LogLevel): LogLevel {
return logLevelPriority[a] < logLevelPriority[b] ? a : b;
}