|
|
@@ -14,6 +14,7 @@ module.exports = function(config) {
|
|
14
|
14
|
|
|
15
|
15
|
// list of files / patterns to load in the browser
|
|
16
|
16
|
files: [
|
|
|
17
|
+ 'node_modules/core-js/index.js',
|
|
17
|
18
|
'./index.js',
|
|
18
|
19
|
'./modules/**/*.spec.js'
|
|
19
|
20
|
],
|
|
|
@@ -26,6 +27,7 @@ module.exports = function(config) {
|
|
26
|
27
|
// available preprocessors:
|
|
27
|
28
|
// https://npmjs.org/browse/keyword/karma-preprocessor
|
|
28
|
29
|
preprocessors: {
|
|
|
30
|
+ 'node_modules/core-js/**': [ 'webpack' ],
|
|
29
|
31
|
'./index.js': [ 'webpack' ],
|
|
30
|
32
|
'./**/*.spec.js': [ 'webpack' ]
|
|
31
|
33
|
},
|
|
|
@@ -53,7 +55,7 @@ module.exports = function(config) {
|
|
53
|
55
|
// start these browsers
|
|
54
|
56
|
// available browser launchers:
|
|
55
|
57
|
// https://npmjs.org/browse/keyword/karma-launcher
|
|
56
|
|
- browsers: [ 'Chrome' ],
|
|
|
58
|
+ browsers: [ 'PhantomJS' ],
|
|
57
|
59
|
|
|
58
|
60
|
// Continuous Integration mode
|
|
59
|
61
|
// if true, Karma captures browsers, runs the tests and exits
|