Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale.
Hi, I'm using Istanbul 0.4.5 with Mocha 5.2.0. I'm trying to test this code and I'm getting: "Error: Line 26: Unexpected token )" (the line with just: ),, after: pattern,):
Yes, it is solved taking off the comma from: "pattern,", but I think that the syntax is correct. I'm using ESLint too and, when I take off that comma, it says: "25:14 error Missing trailing comma comma-dangle".
Thanks!
Hi, I'm using Istanbul 0.4.5 with Mocha 5.2.0. I'm trying to test this code and I'm getting: "Error: Line 26: Unexpected token )" (the line with just:
),
, after:pattern,
):Yes, it is solved taking off the comma from: "pattern,", but I think that the syntax is correct. I'm using ESLint too and, when I take off that comma, it says: "25:14 error Missing trailing comma comma-dangle". Thanks!