/* c8 ignore next */ does not ignore classes or functions
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
* **Version**: v22.9.0
* **Platform**: Ubuntu 20.04.6 LTS
The `/* c8 ignore next */` comment annotation does not seem to ignore classes or functions.
By contrast, the `/* istanbul ignore next */` annotation will ignore classes, functions, blocks and lines.
For example:
```javascript
/* c8 ignore next */
class Foo { // <== ignored!
foo = 'foo'; // <== not ignored :(
bar = 'bar'; // <== not ignored :(
} // <== not ignored :(
```
Ideally the `ignore next` would ignore the entire block, function, or class
Similarly:
```javascript
class Foo {
/* c8 ignore next */
foo() { // <== ignored!
console.log('bar'); // <== not ignored :(
} // <== not ignored :(
} // <== not ignored :(
```
Contributor guide
Assessment
This issue has not been assessed yet.