Closed imposibrus closed 10 years ago
Only when using mocha@1.21.1 from npm, with 1.21.0 (latest) from github all is ok.
imposibrus@host:~/www/site$ mocha-casperjs test/mocha-casperjs.js /usr/local/bin/mocha-casperjs: 3: [: test/mocha-casperjs.js: unexpected operator /usr/local/bin/mocha-casperjs: 3: [: test/mocha-casperjs.js: unexpected operator TypeError: 'undefined' is not a function (evaluating 'process.cwd()') /usr/local/lib/node_modules/mocha/mocha.js:1401 /usr/local/lib/node_modules/mocha/mocha.js:11 in require /usr/local/lib/node_modules/mocha/mocha.js:5880 /usr/local/lib/node_modules/mocha/mocha.js:5973 /usr/local/lib/node_modules/mocha/mocha.js:5973
Sorry I didn't publish the new version from this bug which is a dupe of #35 . 0.5.1 is published now, thanks.
Only when using mocha@1.21.1 from npm, with 1.21.0 (latest) from github all is ok.