mochajs / mocha

☕️ simple, flexible, fun javascript test framework for node.js & the browser
https://mochajs.org
MIT License
22.53k stars 3k forks source link

'min' reporter missing? #449

Closed jdpaton closed 12 years ago

jdpaton commented 12 years ago

I get the following error running: node_modules/.bin/mocha -R min --timeout 180s --slow 10000 test/app-tests.mocha.js

    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module '../lib/reporters/min'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:359:17)
    at require (module.js:375:17)
    at Object.<anonymous> (/Users/xxx/functional/node_modules/mocha/bin/_mocha:131:16)
    at Module._compile (module.js:446:26)
    at Object..js (module.js:464:10)
    at Module.load (module.js:353:31)
    at Function._load (module.js:311:12)
    at Array.0 (module.js:484:10)
    at EventEmitter._tickCallback (node.js:190:38)
make: *** [apps] Error 1

± ls node_modules/mocha/lib/reporters base.js dot.js index.js json.js list.js spec.js teamcity.js doc.js html.js json-stream.js landing.js progress.js tap.js xunit.js

tj commented 12 years ago

fine for me:

git ls-files | grep min
lib/reporters/min.js
jdpaton commented 12 years ago

Ah ok, I pinned an older version in package.json ( what caught me out was in that version mocha --reporters listed min, but it wasn't in the reporters folder)