Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Commit

Permalink
feat(coverage): ES6 coverage
Browse files Browse the repository at this point in the history
Coverage report shows source instead of transpiled code

-
  • Loading branch information
bellstrand authored and AshleyGrant committed Sep 30, 2016
1 parent bafcad6 commit 907cc45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
11 changes: 0 additions & 11 deletions skeleton-esnext/build/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,7 @@ gulp.task('cover', function(done) {
configFile: __dirname + '/../../karma.conf.js',
singleRun: true,
reporters: ['coverage'],
preprocessors: {
'test/**/*.js': ['babel'],
'src/**/*.js': ['babel', 'coverage']
},
coverageReporter: {
includeAllSources: true,
instrumenters: {
isparta: require('isparta')
},
instrumenter: {
'src/**/*.js': 'isparta'
},
reporters: [
{ type: 'html', dir: 'coverage' },
{ type: 'text' }
Expand Down
3 changes: 2 additions & 1 deletion skeleton-esnext/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ module.exports = function(config) {
plugins: [
'syntax-flow',
'transform-decorators-legacy',
'transform-flow-strip-types'
'transform-flow-strip-types',
[ 'istanbul', { 'ignore': 'test/' } ]
]
}
},
Expand Down
3 changes: 1 addition & 2 deletions skeleton-esnext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"aurelia-tools": "^0.2.4",
"babel-core": "^6.11.4",
"babel-eslint": "^6.1.2",
"babel-plugin-istanbul": "^1.0.3",
"babel-plugin-syntax-flow": "^6.8.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-es2015-modules-amd": "^6.8.0",
Expand All @@ -49,8 +50,6 @@
"gulp-plumber": "^1.1.0",
"gulp-protractor": "3.0.0",
"gulp-sourcemaps": "^1.6.0",
"isparta": "^4.0.0",
"istanbul": "^1.0.0-alpha.2",
"jasmine-core": "^2.4.1",
"jspm": "^0.16.41",
"karma": "^1.1.2",
Expand Down

0 comments on commit 907cc45

Please sign in to comment.