Istanbul: Istanbul ignore not working on ES6 exports

Created on 6 Feb 2017  路  3Comments  路  Source: gotwarlost/istanbul

It seems istanbul ignore (or next) is not working on export statements.

image
image

Most helpful comment

This worked just fine 馃槉

export /* istanbul ignore next */ function createKeys() {
  ...
}

All 3 comments

Are you using it through nyc? https://istanbul.js.org/docs/tutorials/es2015/

I ran into the same issue, and yes i am using nyc.

This doesn't work:

// istanbul ignore next
export function createKeys() {
  ...
}

This does work:

// istanbul ignore next
function createKeys() {
  ...
}

export {createKeys};

This worked just fine 馃槉

export /* istanbul ignore next */ function createKeys() {
  ...
}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

niftylettuce picture niftylettuce  路  29Comments

briancullinan picture briancullinan  路  22Comments

jasonpincin picture jasonpincin  路  22Comments

amoufaddel picture amoufaddel  路  28Comments

dankohn picture dankohn  路  25Comments