Icard/angular-clarity-master(work.../node_modules/dom-to-image/karma.conf.js

51 lines
1.3 KiB
JavaScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['mocha', 'chai'],
concurrency: 1,
files: [{
pattern: 'spec/resources/**/*',
included: false,
served: true
}, {
pattern: 'bower_components/fontawesome/fonts/*.*',
included: false,
served: true
}, {
pattern: 'bower_components/fontawesome/css/*.*',
included: false,
served: true
},
'bower_components/jquery/dist/jquery.js',
'bower_components/js-imagediff/imagediff.js',
'test-lib/tesseract-1.0.10.js',
'src/dom-to-image.js',
'spec/dom-to-image.spec.js'
],
exclude: [],
preprocessors: {},
reporters: ['mocha'],
port: 9876,
colors: true,
logLevel: config.LOG_INFO,
client: {
captureConsole: true
},
autoWatch: true,
browsers: ['chrome', 'Firefox'],
customLaunchers: {
chrome: {
base: 'Chrome',
flags: ['--no-sandbox']
}
},
singleRun: false,
browserNoActivityTimeout: 60000
});
};