mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
fix(coverage): do not verify emit source hash for coverage (#15260)
This commit is contained in:
parent
d53936eb7d
commit
5f5bbd597a
3 changed files with 22 additions and 17 deletions
|
@ -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!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue