You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very minimal reproduction of using this module and I noticed one thing, the function start column is always reported as 0, when using nyc directly the column is correctly mapped (for ex. 9).
I have the following file called utils.js:
function testUtil() {
console.log("util");
}
module.exports = {
testUtil,
};
Then from a file index.js I import this util and call it, and then convert the coverage like so:
You can notice the declaration part is obviously wrong as the column is not 0, it should actually be 9? The length of the function keyword + 1 probably?
The text was updated successfully, but these errors were encountered:
I have a very minimal reproduction of using this module and I noticed one thing, the function start column is always reported as 0, when using
nyc
directly the column is correctly mapped (for ex. 9).I have the following file called
utils.js
:Then from a file
index.js
I import this util and call it, and then convert the coverage like so:The output for the
fnMap
is as follows:You can notice the declaration part is obviously wrong as the column is not 0, it should actually be 9? The length of the
function
keyword + 1 probably?The text was updated successfully, but these errors were encountered: