gajus / gajus/babel-plugin-annotate-console-log

Running with nyc adds stuff to console twice

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
42
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Running with [`nyc`][nyc] adds stuff to console twice:
```js
// code:
export default function (keys) {
function fn () {
console.log({ keys })
}
fn()
}
```
```
nyc --reporter=text npm test
```
```
// output:
[keys.js:7] fn() exports.default() [keys.js:7] fn() { keys: [ 'help' ] }
```
(using #2 for filenames but it has no other effect than make it more visible)

[nyc]: https://github.com/istanbuljs/nyc/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.