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

V4Fire / Core / 12027644413

26 Nov 2024 09:31AM UTC coverage: 75.114% (-0.03%) from 75.145%
12027644413

push

github

web-flow
Merge pull request #451 from V4Fire/feat/stderr-details

feat(prelude/global): pass error details to the logger

7391 of 10956 branches covered (67.46%)

Branch coverage included in aggregate %.

1 of 3 new or added lines in 1 file covered. (33.33%)

37 existing lines in 3 files now uncovered.

53899 of 70640 relevant lines covered (76.3%)

127.01 hits per line

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

69.23
/src/core/prelude/global/index.ts
1
/*!
1✔
2
 * V4Fire Core
1✔
3
 * https://github.com/V4Fire/Core
1✔
4
 *
1✔
5
 * Released under the MIT license
1✔
6
 * https://github.com/V4Fire/Core/blob/master/LICENSE
1✔
7
 */
1✔
8

1✔
9
import log from 'core/log';
1✔
10
import extend from 'core/prelude/extend';
1✔
11
import { errorsToIgnore } from 'core/prelude/global/const';
1✔
12

1✔
13
/** @see Any */
1✔
14
extend(globalThis, 'Any', (obj) => obj);
1✔
15

1✔
16
/** @see stderr */
1✔
17
extend(globalThis, 'stderr', (err, ...details: unknown[]) => {
1✔
18
        if (err instanceof Object) {
×
19
                if (errorsToIgnore[err.type] === true) {
×
NEW
20
                        log.info('stderr', err, ...details);
×
21
                        return;
×
22
                }
×
23

×
NEW
24
                log.error('stderr', err, ...details);
×
25
        }
×
26
});
1✔
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

© 2025 Coveralls, Inc