mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-16 08:15:53 +01:00
39 lines
971 B
JavaScript
39 lines
971 B
JavaScript
|
// Karma configuration file, see link for more information
|
||
|
// https://karma-runner.github.io/0.13/config/configuration-file.html
|
||
|
|
||
|
module.exports = function (config) {
|
||
|
config.set({
|
||
|
basePath: '',
|
||
|
frameworks: ['jasmine', 'angular-cli'],
|
||
|
plugins: [
|
||
|
require('karma-jasmine'),
|
||
|
require('karma-chrome-launcher'),
|
||
|
require('karma-remap-istanbul'),
|
||
|
require('angular-cli/plugins/karma')
|
||
|
],
|
||
|
files: [
|
||
|
{ pattern: './src/test.ts', watched: false }
|
||
|
],
|
||
|
preprocessors: {
|
||
|
'./src/test.ts': ['angular-cli']
|
||
|
},
|
||
|
remapIstanbulReporter: {
|
||
|
reports: {
|
||
|
html: 'coverage',
|
||
|
lcovonly: './coverage/coverage.lcov'
|
||
|
}
|
||
|
},
|
||
|
angularCli: {
|
||
|
config: './angular-cli.json',
|
||
|
environment: 'dev'
|
||
|
},
|
||
|
reporters: ['progress', 'karma-remap-istanbul'],
|
||
|
port: 9876,
|
||
|
colors: true,
|
||
|
logLevel: config.LOG_INFO,
|
||
|
autoWatch: true,
|
||
|
browsers: ['Chrome'],
|
||
|
singleRun: false
|
||
|
});
|
||
|
};
|