Skip to content

Instantly share code, notes, and snippets.

@Nijhazer
Created December 2, 2015 03:36
Show Gist options
  • Save Nijhazer/a79962b8cb52acfed0cf to your computer and use it in GitHub Desktop.
Save Nijhazer/a79962b8cb52acfed0cf to your computer and use it in GitHub Desktop.
Building Applications with TypeScript - Snippet 17
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