Hey thanks for the quick reply,
I was using Istanbul like that:
and also tried to add it at the top of the file. I made some more digging and found this: Sonar doesn't respect istanbul ignore comments - #2 by ganncamp
maybe Istanbul is not the way to go?
I am aware of the sonar.coverage.exclusions
option but I am not sure if this makes for a good developer xp. It is extra maintenance to keep track of all the files a new feature has that uses export const ...
in that way. Also basically every initial scan will fail because they seem to use this everywhere. I’m not a typescript developer, but what if I have code that I actually want to test in the same file?
cheers