node-jscoverage
node-jscoverage copied to clipboard
UTF-8 in identifiers not supported
jscoverage node node-cov
jscoverage:stats/controllers/user.js:184: missing : after property id
jscoverage:stats/controllers/user.js:184: SyntaxError: illegal character
jscoverage: parse error in file stats/controllers/user.js
The character in question is a μ being used as an object literal property name.
var data = {
min: stats.min,
max: stats.max,
μ: stats.sum / stats.count,
σ: Math.sqrt(variance),
N: stats.count
};
Node and my IDE both handle this fine.
You can define the encoding of the created files:
jscoverage node node-cov --encoding=UTF-8