Feature: It would be awesome if we have a flag to add `// istanbul ignore next` before auxilary code. #777

Closed
ikarienator opened this Issue Feb 14, 2015 · 8 comments

Projects

None yet

4 participants

@ikarienator

For example, the comment can be added before _slicedToArray or _classCallCheck; or it can be added before object literal return wrapper: if (typeof _ret === "object") return _ret.v;;

@kittens kittens added the enhancement label Feb 14, 2015
@kittens
Member
kittens commented Feb 14, 2015

Hm, good idea. Just need to figure out what's the best way to implement this in case there's another comment that needs to be attached and what other auxilary code there is that needs it.

@kittens
Member
kittens commented Feb 14, 2015

Done.

$ 6to5 script.js --auxilary-comment istanbul ignore next
require("6to5").transform("code", { auxilaryComment: "istanbul ignore next" });

Only prepends it to helpers currently so I'll need to work out what other code needs to be prepended.

@kittens
Member
kittens commented Feb 17, 2015

Whoops, forgot to close this. Available as of 3.6.6, let me know if there's any other generated code that should be handled.

@kittens kittens closed this Feb 17, 2015
@michaelficarra
Contributor

It's spelled auxiliary. :bowtie: 🔤

@kittens
Member
kittens commented Feb 18, 2015

Fuck my life.

@kittens kittens added a commit that referenced this issue Feb 18, 2015
@kittens kittens i'm a terrible spellerer #777 7e8cd2c
@kittens
Member
kittens commented Feb 18, 2015

Fixed as of 4.2.0 ☺️

@jayphelps
Contributor

yougotthis

@ikarienator

Whoops... my fault...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment