Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 5367c96

Browse files
author
Giedrius Grabauskas
committed
Hotfix console message handler. Added mapCoverage in jest.
1 parent 6098736 commit 5367c96

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

dist/simplr-logger.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/simplr-logger.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
},
7575
"jest": {
7676
"collectCoverage": true,
77+
"mapCoverage": true,
7778
"transform": {
7879
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
7980
},

src/handlers/console-message-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class ConsoleMessageHandler extends MessageHandlerBase {
7979

8080
const prefixList: string[] = [];
8181

82-
const timePrefix = LoggerHelpers.ResolveLogLevelPrefix(this.configuration.TimePrefix, timestamp);
82+
const timePrefix = LoggerHelpers.ResolveTimePrefix(this.configuration.TimePrefix, timestamp);
8383
if (timePrefix != null) {
8484
prefixList.push(`[${timePrefix}]`);
8585
}

0 commit comments

Comments
 (0)