After I migrate few files from .js to .ts They no longer append in coverage summary from karma
Test are wrote in .js and importing some files like .ts, Test are working, .ts files are tested but, there is no info about coverage in all .ts files
This is my karma configuration
var BROWSERS = ['Safari', 'Chrome']
config.set({
frameworks: ['jasmine-ajax', 'jasmine'],
reporters:['mocha'],
files: [
{ pattern: 'test/**/*_test.js', watched: false }
],
colors: true,
autoWatch: true,
singleRun: false,
coverageReporter: {
dir: '.',
reporters: [
{ type: 'text', subdir: 'coverage' },
{ type: 'html', subdir: 'coverage' },
{ type: 'lcovonly', subdir: '.', file: 'lcov.info' }
]
},
preprocessors: {
'test/**/*_test.js': ['webpack', 'sourcemap']
},
webpack: build.config('test'),
webpackMiddleware: {
stats: 'errors-only'
},
browsers: BROWSERS,
client: {
captureConsole: false,
mocha: {
bail: true
}
}
})
I expect to coverage includes .ts files
Aucun commentaire:
Enregistrer un commentaire