-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(metadata precedence) - fix metadata override issues (#1989)
* chore: wrap logger tests in top-level describe * chore: restructure tests directory * chore: restructure logger tests * chore: cleanup test descriptions * fix: fix ci step to account for npm script rename * chore: rename tests dir back to test * fix: correct relative file paths * make sure all tests actually run * feat: add nyc configuration file * chore: fix missing end of file newlines * fix: ci steps * fix: ci steps try 2 * chore: rename ci jobs * chore: leverage yaml file for nyc configuration * chore: move nyc configuration from npm script to associated configuration file * chore: move common mocha configurations from npm script to dedicated configuration * feat: introduce a in-memory mock transport generator * chore: make test callback functions consistent * feat: introduce tests proving issues with metadata precedence * fix: introduce fix for application of default metadata * feat: add equivalent tests for .log() method * chore: update nyc coverage * chore: undo accidental indent * chore: add new test to ensure a parents metadata updates don't propogate to the child * chore: fix nyc coverage requirements * feat: introduce test proving issue with Profilers instance not including metadata * feat: ensure Profiler triggers the logger's add default metadata functionality * fix: add a safety net to calling 'addDefaultMeta' on the logger instance * chore: fix failing build issues * feat: add test to ensure changes to parents metadata are not propogated to a child * fix: remove linebreak configuration from editorconfig * chore: combine level and log tests of same kind to ensure both output the same * feat: introduce tests proving issues reported * feat: introduce tests for non-primitive data types in metadata * chore: deep clone when instantiating child logger * chore: remove unused imports * chore: address comments on logger test additions * Replace JSON.stringify with one that accounts for cyclical refs * Add lint rule for semicolons. Add script to run linter fix operation. Fix missing semis
- Loading branch information
1 parent
e4acc5a
commit ba93eae
Showing
7 changed files
with
704 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ reporter: | |
check-coverage: true | ||
branches: 61.51 | ||
lines: 70.85 | ||
functions: 73.21 | ||
functions: 73.08 | ||
statements: 70.54 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.