Closed
Description
Describe the bug
In a svelte.kit application, while outputting data in an each block, any time the iterator is accessed, Istanbul is reporting that I never go into an if
block that doesn't exist. Also, in the coverage report it shows line 97 as partially covered and the HTML shows it as fully covered.
Reproduction
https://github.com/kgladfelder/vitest-issue-repro
System Info
System:
OS: Windows 10 10.0.22000
CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
Memory: 7.88 GB / 15.86 GB
npmPackages:
vite: ^3.0.7 => 3.0.7
vitest: ^0.22.0 => 0.22.0
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.