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

visgl / loaders.gl / 20352515932

18 Dec 2025 09:56PM UTC coverage: 35.115% (-28.4%) from 63.485%
20352515932

push

github

web-flow
feat(loader-utils): Export is-type helpers (#3258)

1188 of 1998 branches covered (59.46%)

Branch coverage included in aggregate %.

147 of 211 new or added lines in 13 files covered. (69.67%)

30011 existing lines in 424 files now uncovered.

37457 of 108056 relevant lines covered (34.66%)

0.79 hits per line

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

53.85
/modules/loader-utils/src/lib/parser-utils/parse-json.ts
1
import {getFirstCharacters} from '../binary-utils/get-first-characters';
1✔
2

1✔
3
/**
1✔
4
 * Minimal JSON parser that throws more meaningful error messages
1✔
5
 */
1✔
6
export function parseJSON(string: string): any {
1✔
UNCOV
7
  try {
×
UNCOV
8
    return JSON.parse(string);
×
UNCOV
9
  } catch (_) {
×
UNCOV
10
    throw new Error(`Failed to parse JSON from data starting with "${getFirstCharacters(string)}"`);
×
UNCOV
11
  }
×
UNCOV
12
}
×
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