forked from bougiebatz/bougiebatz
-
Notifications
You must be signed in to change notification settings - Fork 4
/
karma.conf.js
39 lines (28 loc) · 991 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Karma configuration
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',
// testing frameworks to use
frameworks: ['mocha', 'chai', 'sinon'],
// list of files / patterns to load in the browser. order matters!
files: [
// angular source
'client/assets/js/angular.js',
'client/assets/js/angular-route.min.js',
'client/assets/js/angular-mocks.js',
// our app code
'client/app/**/*.js',
// our spec files - in order of the README
'test/testmodule.js',
],
// test results reporter to use
reporters: ['nyan', 'unicorn'],
// start these browsers. PhantomJS will load up in the background
browsers: ['PhantomJS'],
// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,
// if true, Karma exits after running the tests.
singleRun: true
});
};