Created
December 2, 2015 03:36
-
-
Save Nijhazer/a79962b8cb52acfed0cf to your computer and use it in GitHub Desktop.
Building Applications with TypeScript - Snippet 17
This file contains hidden or 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
module.exports = function(config) { | |
config.set({ | |
basePath: '', | |
frameworks: ['mocha', 'requirejs', 'chai-sinon'], | |
// Here, we specify which files Karma should load into the test harness. | |
files: [ | |
// First, load an additional test runner that the karma-requirejs plugin will need. | |
'src/test/karma-test-runner.js', | |
// Next, load all of our compiled code, which includes unit tests since they were compiled at the same time. | |
{pattern: 'generated/www/**/*.js', included: false}, | |
// Finally, load our dependencies. These were retrieved using Bower. | |
{pattern: 'src/www/js/lib/**/*.js', included: false} | |
], | |
exclude: [], | |
preprocessors: {}, | |
reporters: ['spec'], | |
port: 9876, | |
colors: true, | |
logLevel: config.LOG_INFO, | |
autoWatch: false, | |
browsers: ['PhantomJS'], | |
singleRun: false, | |
concurrency: Infinity | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment