mocha: Browserify cannot find runnable module when using require('mocha')
When compiling test scripts into a single monolith using Browserify, I hit the error:
module "./runnable" not found from "../node_modules/mocha/mocha.js".
Line 846 of mocha.js requires runnable as such:
var Runnable = require('./runnable');
Does this need to be amended as such?
var Runnable = require('./lib/runnable');
If this is true, it seems there are several file paths that need to be renamed. Is there a workaround?
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 28 (12 by maintainers)
@nevir Hoping to resolve that issue soon. I’d like to get Mocha built w/ Browserify instead of the current homebrew solution.