From 0fa67552247b2d29a6ca438c2605b8db2bbdbab7 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 21 May 2014 23:43:28 +0200 Subject: es6 all the things --- js/karma.conf.js | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) (limited to 'js/karma.conf.js') diff --git a/js/karma.conf.js b/js/karma.conf.js index 5b33469dd..73c083350 100644 --- a/js/karma.conf.js +++ b/js/karma.conf.js @@ -12,8 +12,25 @@ module.exports = function (config) { // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter - frameworks: ['jasmine'], + frameworks: ['jasmine', 'traceur'], + preprocessors: { + 'tests/unit/stubs/*.js': ['traceur'], + 'controller/**/*.js': ['traceur'], + 'filter/**/*.js': ['traceur'], + 'service/**/*.js': ['traceur'], + 'directive/**/*.js': ['traceur'], + 'tests/unit/**/*Spec.js': ['traceur'] + }, + + traceurPreprocessor: { + options: { + blockBinding: true, + experimental: true, + sourceMap: false, + modules: 'inline' + } + }, // list of files / patterns to load in the browser files: [ @@ -25,13 +42,13 @@ module.exports = function (config) { 'vendor/angular-route/angular-route.js', 'vendor/angular-sanitize/angular-sanitize.js', 'vendor/angular-animate/angular-animate.js', - 'tests/unit/stubs/*.js', + 'tests/unit/stubs/App.js', + 'tests/unit/stubs/OC.js', 'controller/**/*.js', 'filter/**/*.js', 'service/**/*.js', - 'model/**/*.js', 'directive/**/*.js', - 'tests/unit/**/*Spec.js' + 'tests/unit/**/*Spec.js', ], @@ -41,13 +58,6 @@ module.exports = function (config) { ], - // preprocess matching files before serving them to the browser - // available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor - preprocessors: { - - }, - - // test results reporter to use // possible values: 'dots', 'progress' // available reporters: https://npmjs.org/browse/keyword/karma-reporter @@ -73,7 +83,7 @@ module.exports = function (config) { // start these browsers // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher - browsers: ['PhantomJS'], + browsers: ['Firefox'], // Continuous Integration mode -- cgit v1.2.3