Handling dependencies not installed with npm, in Mocha?
问题 I have a working Node application and I'm trying to add Mocha tests, but getting some odd import errors. This is my file structure: package.json index.js src/ chart.js test/ test_chart.js This is what my chart.js file looks like: global.jQuery = require('jquery'); global.$ = global.jQuery; require('typeahead'); require('bloodhound'); var bootstrap = require('bootstrap'); var Handlebars = require('handlebars'); var Highcharts = require('highcharts-browserify'); var parse = require('csv-parse')