@biz-storefront/bizy
Version:
Bizy-Bizcommerce component library
46 lines (44 loc) • 1.61 kB
JavaScript
// This is a karma config file. For more details see
// http://karma-runner.github.io/0.13/config/configuration-file.html
// we are also using it with karma-webpack
// https://github.com/webpack/karma-webpack
module.exports = function karmaConfig(config) {
config.set({
// to run in additional browsers:
// 1. install corresponding karma launcher
// http://karma-runner.github.io/0.13/config/browsers.html
// 2. add it to the `browsers` array below.
basePath: './',
browsers: ['Chrome', 'ChromeHeadlessSand'],
frameworks: ['mocha', 'sinon-chai'],
reporters: ['spec', 'coverage'],
customLaunchers: {
ChromeHeadlessSand: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
files: [
{pattern: '../../node_modules/vue/dist/vue.js'},
{pattern: './src/*.js', included: false, served: true},
{pattern: './src/components/*.js', included: false, served: true},
{pattern: './src/mixins/*.js', included: false, served: true},
{pattern: './spec/integration/helpers/*.js', type: 'module', included: false, served: true},
{pattern: './spec/integration/*.spec.js', type: 'module'}
],
/*
preprocessors: {
'./node_modules/*': ['commonjs']
},*/
//https://github.com/karma-runner/karma/pull/2834#issuecomment-385980959
customContextFile: './spec/context.html',
customDebugFile: './spec/debug.html',
coverageReporter: {
dir: './spec/coverage',
reporters: [
{ type: 'lcov', subdir: '.' },
{ type: 'text-summary' },
],
},
});
};