• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yiming-liao / logry / 18441766080

12 Oct 2025 08:57AM UTC coverage: 95.92% (-0.3%) from 96.196%
18441766080

push

github

yiming-liao
chore(release): bump version to 1.2.3

434 of 498 branches covered (87.15%)

Branch coverage included in aggregate %.

3939 of 4061 relevant lines covered (97.0%)

3.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.25
/src/shared/utils/assert-valid-level.ts
1
import type { Level } from "@/shared/types";
1✔
2
import { internalError } from "@/internal";
1✔
3
import { LEVEL_CONFIG } from "@/shared/constants";
1✔
4

1✔
5
/**
1✔
6
 * Validate that the provided log level exists in the priority map.
1✔
7
 * @param level - The log level to validate.
1✔
8
 * @throws Will throw an error if the level is not valid.
1✔
9
 */
1✔
10
export const assertValidLevel = (level?: Level): void => {
1✔
11
  if (level !== undefined && !(level in LEVEL_CONFIG)) {
61!
12
    return internalError({ message: `Invalid log level: ${level}` });
×
13
  }
×
14
};
61✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc