This allows one to call "karma start" without specifying the name of the config file.
module.exports = function(config) {
config.set({
autoWatch: true,
- basePath: '..',
browsers: ['PhantomJS'],
exclude: [
],
#!/bin/bash
if which node_modules/karma/bin/karma >> /dev/null; then
- node node_modules/karma/bin/karma start tests/karma.conf.js
+ node node_modules/karma/bin/karma start
elif which karma >> /dev/null ; then
- karma start tests/karma.conf.js
+ karma start
else
echo "ERROR: Failed to find karma"
exit 1