-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): require config as a regular module
Closes #304 BREAKING CHANGE: Update your karma.conf.js to export a config function. ````javascript module.exports = function(karma) { karma.configure({ autoWatch: true, // ... }); };
- Loading branch information
Showing
20 changed files
with
565 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,78 @@ | ||
// Karma configuration | ||
// Generated on %DATE% | ||
|
||
module.exports = function(karma) { | ||
karma.configure({ | ||
|
||
// base path, that will be used to resolve files and exclude | ||
basePath = '%BASE_PATH%'; | ||
// base path, that will be used to resolve files and exclude | ||
basePath: '%BASE_PATH%', | ||
|
||
|
||
// frameworks to use | ||
frameworks = [%FRAMEWORKS%]; | ||
// frameworks to use | ||
frameworks: [%FRAMEWORKS%], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files = [ | ||
%FILES% | ||
]; | ||
// list of files / patterns to load in the browser | ||
files: [ | ||
%FILES% | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude = [ | ||
%EXCLUDE% | ||
]; | ||
// list of files to exclude | ||
exclude: [ | ||
%EXCLUDE% | ||
], | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' | ||
reporters = ['progress']; | ||
// test results reporter to use | ||
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' | ||
reporters: ['progress'], | ||
|
||
|
||
// web server port | ||
port = 9876; | ||
// web server port | ||
port: 9876, | ||
|
||
|
||
// cli runner port | ||
runnerPort = 9100; | ||
// cli runner port | ||
runnerPort: 9100, | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors = true; | ||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
|
||
// level of logging | ||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG | ||
logLevel = LOG_INFO; | ||
// level of logging | ||
// possible values: karma.LOG_DISABLE || karma.LOG_ERROR || karma.LOG_WARN || karma.LOG_INFO || karma.LOG_DEBUG | ||
logLevel: karma.LOG_INFO, | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch = %AUTO_WATCH%; | ||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: %AUTO_WATCH%, | ||
|
||
|
||
// Start these browsers, currently available: | ||
// - Chrome | ||
// - ChromeCanary | ||
// - Firefox | ||
// - Opera | ||
// - Safari (only Mac) | ||
// - PhantomJS | ||
// - IE (only Windows) | ||
browsers = [%BROWSERS%]; | ||
// Start these browsers, currently available: | ||
// - Chrome | ||
// - ChromeCanary | ||
// - Firefox | ||
// - Opera | ||
// - Safari (only Mac) | ||
// - PhantomJS | ||
// - IE (only Windows) | ||
browsers: [%BROWSERS%], | ||
|
||
|
||
// If browser does not capture in given timeout [ms], kill it | ||
captureTimeout = 60000; | ||
// If browser does not capture in given timeout [ms], kill it | ||
captureTimeout: 60000, | ||
|
||
|
||
// Continuous Integration mode | ||
// if true, it capture browsers, run tests and exit | ||
singleRun = false; | ||
// Continuous Integration mode | ||
// if true, it capture browsers, run tests and exit | ||
singleRun: false, | ||
|
||
|
||
// plugins to load | ||
plugins = [ | ||
%PLUGINS% | ||
]; | ||
// plugins to load | ||
plugins: [ | ||
%PLUGINS% | ||
], | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.