aboutsummaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/karma.conf.common.js2
-rw-r--r--.config/karma.conf.js2
-rw-r--r--.config/karma.es6.js22
3 files changed, 22 insertions, 4 deletions
diff --git a/.config/karma.conf.common.js b/.config/karma.conf.common.js
index a89c8e6..62005bf 100644
--- a/.config/karma.conf.common.js
+++ b/.config/karma.conf.common.js
@@ -31,7 +31,7 @@ module.exports = function (config) {
included: false,
served: true
},
- 'dist/svg.min.js',
+ 'dist/svg.js',
'spec/spec/*.js'
],
diff --git a/.config/karma.conf.js b/.config/karma.conf.js
index ccda070..660c1d2 100644
--- a/.config/karma.conf.js
+++ b/.config/karma.conf.js
@@ -23,7 +23,7 @@ module.exports = function (config) {
// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
- 'dist/svg.min.js': ['coverage']
+ 'dist/svg.js': ['coverage']
},
// this specifies which plugins karma should load
diff --git a/.config/karma.es6.js b/.config/karma.es6.js
index 81605cf..8802c2d 100644
--- a/.config/karma.es6.js
+++ b/.config/karma.es6.js
@@ -33,13 +33,31 @@ module.exports = function (config) {
type: 'module'
},
{
- pattern: 'spec/spec/*/*.js',
+ pattern: 'spec/spec/*/**/*.js',
included: true,
type: 'module'
}
],
- reporters: ['progress'],
+ preprocessors: {
+ 'src/**/*.js': ['coverage']
+ },
+
+ reporters: ['progress', 'coverage'],
+ coverageReporter: {
+ // Specify a reporter type.
+ type: 'lcov',
+ dir: 'coverage/',
+ subdir: function (browser) {
+ // normalization process to keep a consistent browser name accross different OS
+ return browser.toLowerCase().split(/[ /-]/)[0] // output the results into: './coverage/firefox/'
+ },
+ instrumenterOptions: {
+ istanbul: {
+ esModules: true
+ }
+ }
+ },
browsers: ['ChromeHeadless', 'FirefoxHeadless'],
singleRun: false,
concurrency: Infinity