Skip to content

Commit

Permalink
Fix: don't try to use Node entry point or the karma conf file; also, …
Browse files Browse the repository at this point in the history
…*do* cover browser shims since we're getting browser coverage now
  • Loading branch information
ScottFreeCode committed Jun 15, 2017
1 parent 281e426 commit 4240180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function (config) {
var bundleDirpath;
var filesBase = [
// make browserify bundle these properly (if nothing else, this is necessary for coverage transform; unclear whether it makes a difference as to how browserify gets them otherwise, as it doesn't print any debug logs about them without it)
{ pattern: '*.js', included: false, served: false },
{ pattern: 'browser-entry.js', included: false, served: false },
{ pattern: 'lib/**/*.js', included: false, served: false }
];
var cfg = {
Expand Down Expand Up @@ -162,7 +162,7 @@ module.exports = function (config) {
subdir: '.',
includeAllSources: true
};
cfg.browserify.transform = [ workaroundMultiplePreprocessorIncompatibility({ ignore: ['**/lib/browser/**', '**/node_modules/**', '**/test/**'], instrumenter: nyc, instrumenterConfig: { autoWrap: true, embedSource: true, produceSourceMap: true, noCompact: false } }) ];
cfg.browserify.transform = [ workaroundMultiplePreprocessorIncompatibility({ ignore: ['**/node_modules/**', '**/test/**'], instrumenter: nyc, instrumenterConfig: { autoWrap: true, embedSource: true, produceSourceMap: true, noCompact: false } }) ];
console.error('Reporting coverage to ' + cfg.coverageReporter.dir);
}

Expand Down

0 comments on commit 4240180

Please sign in to comment.