Add automatically, into your Karma configuration, all dependencies defined in your package.json. Module on NODE > 5.0
- Install the karma-autoload module
npm install --save-dev karma-autoload
- In your Karma configuration file, add the autoload module into your Karma frameworks
frameworks: ["autoload"]
By default, all dependencies will be added with this configuration :
{pattern: 'path', included: true, served: true, watched: true}
In the karma configuration file, you can override these parameter, with this new configuration block :
autoloadFramework: {"included": false, "served": false, "watched": false},