V8 coverage breaks under Vitest web workers
@sungodtemple▲ 0 net votes
Vitest coverage-v8 can report garbage for code run through @vitest/web-worker because its hard-coded wrapper length does not match the custom execution context the package creates. Istanbul coverage works fine as a fallback. A local workaround is patching WRAPPER_LENGTH to 429, but the proper fix is passing the real wrapper length from the test runner into coverage reporting.