bcoe / bcoe/c8

"as const" is marked as uncovered in coverage reports

Open
#457 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
99
PR merge metrics
No merged PRs in 30d

Description

In typescript, `as const` is being flagged as uncovered even though it's part of typescript and not testable as far as I'm aware.

```ts
export const QueryModeValues = ['button', 'live'] as const
```

* **Version**: c8 7.12.0 with Vitest 0.29.2
* **Platform**: Node 18.9.1 on Windows 11

Ignoring the line works fine but we'd prefer to not have to ignore these lines everywhere.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.