Skip to content

Commit

Permalink
Fix warnMissingSourceMaps always set to true (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
messman authored and dylans committed Apr 25, 2018
1 parent 5ff5733 commit 9f6dba0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CoverageTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export default class CoverageTransformer {
constructor(options) {
this.basePath = options.basePath;
this.warn = options.warn || console.warn;
this.warnMissingSourceMaps = options.warnMissingSourceMaps === false ? false : true;
this.warnMissingSourceMaps =
(typeof options.warnMissingSourceMaps !== 'undefined') ? options.warnMissingSourceMaps : true;

this.exclude = () => false;
if (options.exclude) {
Expand Down

0 comments on commit 9f6dba0

Please sign in to comment.