fix(coverage): do not verify emit source hash for coverage (#15260)

This commit is contained in:
David Sherret 2022-07-20 16:30:57 -04:00 committed by GitHub
parent d53936eb7d
commit 5f5bbd597a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 17 deletions

View file

@ -3,7 +3,6 @@
use crate::args::CoverageFlags;
use crate::args::Flags;
use crate::colors;
use crate::emit::get_source_hash;
use crate::fs_util::collect_files;
use crate::proc_state::ProcState;
use crate::text_encoding::source_map_from_code;
@ -678,9 +677,7 @@ pub async fn cover_files(
| MediaType::Mts
| MediaType::Cts
| MediaType::Tsx => {
let source_hash =
get_source_hash(original_source, ps.emit_options_hash);
match ps.emit_cache.get_emit_code(&file.specifier, source_hash) {
match ps.emit_cache.get_emit_code(&file.specifier, None) {
Some(code) => code,
None => {
return Err(anyhow!(