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

@ -249,7 +249,7 @@ pub fn emit_parsed_source(
let source_hash =
get_source_hash(parsed_source.text_info().text_str(), emit_config_hash);
if let Some(emit_code) = cache.get_emit_code(specifier, source_hash) {
if let Some(emit_code) = cache.get_emit_code(specifier, Some(source_hash)) {
Ok(emit_code)
} else {
let transpiled_source = parsed_source.transpile(emit_options)?;