Skip to content

Instantly share code, notes, and snippets.

@jimjh
Last active December 19, 2015 05:29
Show Gist options
  • Save jimjh/5904291 to your computer and use it in GitHub Desktop.
Save jimjh/5904291 to your computer and use it in GitHub Desktop.
Karma Config for Rails
basePath = '../';
files = [
JASMINE,
JASMINE_ADAPTER,
// cdn/vendor files
'vendor/assets/javascripts/jquery-*.min.js',
'vendor/assets/javascripts/angular/angular.min.js',
// libraries -- these are examples
'vendor/assets/javascripts/ace.js',
'vendor/assets/javascripts/mode-markdown.js',
'vendor/assets/javascripts/theme-github.js',
'vendor/assets/javascripts/foundation-datepicker.js',
// app
'app/assets/javascripts/angular/**/*.js',
// tests
'spec/javascripts/lib/angular/angular-mocks.js',
'spec/javascripts/unit/**/*.js'
];
autoWatch = false;
singleRun = true;
browsers = ['Chrome'];
reporters = ['dots', 'junit'];
preprocessors = {
'**/*.coffee': 'coffee'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment