mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* remove target when search * content panel component infinite pagiantion and dropdown integration * fix insight karma
98 lines
3.6 KiB
JavaScript
98 lines
3.6 KiB
JavaScript
// Karma configuration file, see link for more information
|
|
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
|
|
module.exports = function (config) {
|
|
config.set({
|
|
basePath: '',
|
|
|
|
files: [
|
|
{pattern: '../../node_modules/core-js/client/core.js', included: true, watched: false},
|
|
{pattern: '../../node_modules/tslib/tslib.js', included: true, watched: false},
|
|
{pattern: '../../node_modules/hammerjs/hammer.min.js', included: true, watched: false},
|
|
{pattern: '../../node_modules/hammerjs/hammer.min.js.map', included: false, watched: false},
|
|
|
|
// pdf-js
|
|
{pattern: '../../node_modules/pdfjs-dist/build/pdf.js', included: true, watched: false},
|
|
{pattern: '../../node_modules/pdfjs-dist/build/pdf.worker.js', included: true, watched: false},
|
|
{pattern: '../../node_modules/pdfjs-dist/web/pdf_viewer.js', included: true, watched: false},
|
|
|
|
{
|
|
pattern: '../../node_modules/@angular/material/prebuilt-themes/indigo-pink.css',
|
|
included: true,
|
|
watched: false
|
|
},
|
|
|
|
{pattern: '../../node_modules/chart.js/dist/Chart.js', included: true, watched: false},
|
|
{pattern: '../../node_modules/raphael/raphael.min.js', included: true, watched: false},
|
|
{
|
|
pattern: './node_modules/ng2-charts/bundles/ng2-charts.umd.js',
|
|
included: false,
|
|
served: true,
|
|
watched: false
|
|
},
|
|
|
|
{pattern: '../../node_modules/moment/min/moment.min.js', included: true, watched: false},
|
|
|
|
{pattern: './i18n/**/en.json', included: false, served: true, watched: false},
|
|
|
|
{pattern: './**/*.ts', included: false, served: true, watched: false},
|
|
|
|
{pattern: './app.config.json', included: false, served: true, watched: false},
|
|
],
|
|
|
|
frameworks: ['jasmine-ajax', 'jasmine', '@angular-devkit/build-angular'],
|
|
|
|
proxies: {
|
|
'/base/assets/' :'/base/assets/',
|
|
'/assets/adf-insights/i18n/en.json': '/base/i18n/en.json',
|
|
'/app.config.json': '/base/app.config.json'
|
|
},
|
|
|
|
plugins: [
|
|
require('karma-jasmine-ajax'),
|
|
require('karma-jasmine'),
|
|
require('karma-chrome-launcher'),
|
|
require('karma-jasmine-html-reporter'),
|
|
require('karma-coverage-istanbul-reporter'),
|
|
require('@angular-devkit/build-angular/plugins/karma'),
|
|
require('karma-mocha-reporter')
|
|
],
|
|
client: {
|
|
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
},
|
|
coverageIstanbulReporter: {
|
|
dir: './lib/coverage/insights/',
|
|
reports: ['html', 'lcovonly'],
|
|
fixWebpackSourcePaths: true
|
|
},
|
|
|
|
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
logLevel: config.LOG_INFO,
|
|
|
|
colors: true,
|
|
|
|
autoWatch: false,
|
|
|
|
browserDisconnectTimeout: 200000,
|
|
browserNoActivityTimeout: 2400000,
|
|
captureTimeout: 1200000,
|
|
|
|
customLaunchers: {
|
|
ChromeHeadless: {
|
|
base: 'Chrome',
|
|
flags: [
|
|
'--no-sandbox',
|
|
'--headless',
|
|
'--disable-gpu',
|
|
'--remote-debugging-port=9222'
|
|
]
|
|
}
|
|
},
|
|
|
|
reporters: ['mocha', 'kjhtml'],
|
|
port: 9876,
|
|
browsers: ['Chrome'],
|
|
singleRun: false
|
|
});
|
|
};
|