mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Karma remap istanbul bug fix
This commit is contained in:
@@ -15,7 +15,7 @@ module.exports = function(config) {
|
||||
var configuration = {
|
||||
|
||||
// base path that will be used to resolve all patterns (e.g. files, exclude)
|
||||
basePath: '',
|
||||
basePath: '.',
|
||||
|
||||
/*
|
||||
* Frameworks to use
|
||||
@@ -84,7 +84,7 @@ module.exports = function(config) {
|
||||
* possible values: 'dots', 'progress'
|
||||
* available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
||||
*/
|
||||
reporters: [ 'mocha', 'coverage' ],
|
||||
reporters: [ 'mocha', 'coverage', 'karma-remap-istanbul' ],
|
||||
|
||||
// Karma web server port
|
||||
port: 9876,
|
||||
|
@@ -7,6 +7,7 @@
|
||||
"removeComments": false,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"allowUnusedLabels": false,
|
||||
"noEmitHelpers": true,
|
||||
|
@@ -91,20 +91,23 @@ module.exports = function (options) {
|
||||
*/
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loaders: ['awesome-typescript-loader', 'angular2-template-loader'],
|
||||
/*loader: 'awesome-typescript-loader',
|
||||
query: {
|
||||
// use inline sourcemaps for "karma-remap-coverage" reporter
|
||||
sourceMap: false,
|
||||
inlineSourceMap: true,
|
||||
compilerOptions: {
|
||||
|
||||
// Remove TypeScript helpers to be injected
|
||||
// below by DefinePlugin
|
||||
removeComments: true
|
||||
|
||||
}
|
||||
},*/
|
||||
loaders: [
|
||||
{
|
||||
loader: 'awesome-typescript-loader',
|
||||
query: {
|
||||
// use inline sourcemaps for "karma-remap-coverage" reporter
|
||||
sourceMap: false,
|
||||
inlineSourceMap: true,
|
||||
sourceRoot: false,
|
||||
compilerOptions: {
|
||||
// Remove TypeScript helpers to be injected
|
||||
// below by DefinePlugin
|
||||
removeComments: true
|
||||
}
|
||||
}
|
||||
},
|
||||
'angular2-template-loader'
|
||||
],
|
||||
exclude: [/\.e2e\.ts$/]
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user