Attualmente sto usando azoto, che non dovrebbe avere importanza, ma avevo bisogno di installare moka così ho digitato:non può risolvere il percorso in Mocha
npm install - g mocha.
Tutto installato e quando provo a fare funzionare moka nel mio comando linea ottengo il seguente errore:
/home/action/.parts/lib/node_modules/mocha/bin/_mocha:454
if (!files.length) throw new Error("cannot resolve path (or pattern) '"Error: cannot resolve path (or pattern) 'test/unit'
at lookupFiles (/home/action/.parts/lib/node_modules/mocha/bin/_mocha:454:32)
at runAgain (/home/action/.parts/lib/node_modules/mocha/bin/_mocha:305:24)
at Array.forEach (native)
at Object. (/home/action/.parts/lib/node_modules/mocha/bin/_mocha:304:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
Qualcuno sa come risolvere questo?
Da segnalare che questo errore si mostra anche quando la directory di destinazione non ha alcun test in là. – xmaestro