Переглянути джерело

feat(tests): run on phantomjs by default

dev1
Leonard Kim 8 роки тому
джерело
коміт
031fab513c
2 змінених файлів з 5 додано та 1 видалено
  1. 3
    1
      karma.conf.js
  2. 2
    0
      package.json

+ 3
- 1
karma.conf.js Переглянути файл

@@ -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

+ 2
- 0
package.json Переглянути файл

@@ -33,6 +33,7 @@
33 33
     "babel-loader": "7.1.2",
34 34
     "babel-preset-es2015": "6.24.1",
35 35
     "babel-preset-stage-1": "6.24.1",
36
+    "core-js": "2.5.1",
36 37
     "eslint": "4.8.0",
37 38
     "eslint-plugin-flowtype": "2.37.0",
38 39
     "eslint-plugin-import": "2.7.0",
@@ -40,6 +41,7 @@
40 41
     "jasmine-core": "2.5.2",
41 42
     "karma": "0.13.22",
42 43
     "karma-chrome-launcher": "0.2.3",
44
+    "karma-phantomjs-launcher": "1.0.4",
43 45
     "karma-jasmine": "0.3.8",
44 46
     "karma-webpack": "1.8.1",
45 47
     "precommit-hook": "3.0.0",

Завантаження…
Відмінити
Зберегти