summaryrefslogtreecommitdiffstats
path: root/js/karma.conf.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-21 23:43:28 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-21 23:43:28 +0200
commit0fa67552247b2d29a6ca438c2605b8db2bbdbab7 (patch)
tree8109135e2fc141a324e8f21c66243ee4277b3b7c /js/karma.conf.js
parentd3a774b2bd79654360a3ef12618102abf85a2ce3 (diff)
es6 all the things
Diffstat (limited to 'js/karma.conf.js')
-rw-r--r--js/karma.conf.js34
1 files changed, 22 insertions, 12 deletions
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