Istanbul gibt mir Berichterstattung, beendet die Ausgabe jedoch mit einem Fehler

Ich teste eine einfache Anwendung (aus dem Mocha-Tutorial-Code hierhttps: //marcofranssen.nl/using-mocha-chai-sinon-to-test-node-js) um Istanbul zum Arbeiten zu bringen. Mein Problem ist, dass Istanbul gut funktioniert, um mir eine Zusammenfassung der Berichterstattung zu geben, aber dann aus irgendeinem Grund einen Fehler ausspuckt und ich nicht sicher bin, warum. Meine Tests sind alle bestanden, sodass sie hoffentlich nicht das Problem sind. So leite ich Istanbul:

$ istanbul cover test.js

=============================================================================
Writing coverage object [C:\Users\path\test\coverage\coverage.json]
Writing coverage reports at [C:\Users\path\test\coverage]
=============================================================================

=============================== Coverage summary ===============================

Statements   : 54.55% ( 6/11 )
Branches     : 100% ( 0/0 )
Functions    : 0% ( 0/2 )
Lines        : 54.55% ( 6/11 )
================================================================================
ReferenceError: describe is not defined
    at Object.<anonymous> (C:\Users\path\test.js:9:386)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions.(anonymous function) [as .js] (C:\Users\path
\AppData\Roaming\npm\node_modules\istanbul\lib\hook.js:107:24)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
    at runFn (C:\Users\path\AppData\Roaming\npm\node_modules\istanbul\lib\com
mand\common\run-with-cover.js:122:16)
    at C:\Users\path\AppData\Roaming\npm\node_modules\istanbul\lib\command\co
mmon\run-with-cover.js:251:17
    at C:\Users\path\AppData\Roaming\npm\node_modules\istanbul\lib\util\file-
matcher.js:68:16
    at C:\Users\path\AppData\Roaming\npm\node_modules\istanbul\node_modules\a
sync\lib\async.js:52:16

Ich bin mir nicht sicher warumdescribe wird nicht erkannt, da alle Tests erfolgreich ausgeführt wurden.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage