Adding require 'coffee-coverage/register-istanbul' inside Cakefile’s runTests throws errors for the files with new features added in CoffeeScript 2 (note filenames):
CoverageError: Could not parse documentation/examples/jsx.coffee:
[stdin]:9:4: error: missing / (unclosed regex)
</aside>
^
CoverageError: Could not parse documentation/examples/object_spread.coffee:
SyntaxError: unexpected ...
CoverageError: Could not parse documentation/examples/type_annotations.coffee:
SyntaxError: unexpected : string
And import or export statements, added in 1.11, still aren’t supported (#82):
CoverageError: Could not compile documentation/examples/modules.coffee after instrumenting:
SyntaxError: import statements must be at top-level scope
Adding
require 'coffee-coverage/register-istanbul'insideCakefile’srunTeststhrows errors for the files with new features added in CoffeeScript 2 (note filenames):And
importorexportstatements, added in 1.11, still aren’t supported (#82):