fix(install): don't error on unknown media types in install (#28234)

Fixes https://github.com/denoland/deno/issues/28223

This is kind of an ugly fix, but it works, and I think is the easiest
way to handle the fact that when caching the module graph we might
encounter imports that won't actually error at runtime (for instance in
files that will be bundled).
This commit is contained in:
Nathan Whitaker 2025-02-21 12:20:55 -08:00 committed by GitHub
parent 876bac445a
commit d20c6b5b7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 128 additions and 33 deletions

View file

@ -235,7 +235,10 @@ impl TestRun {
)?;
let main_graph_container = factory.main_module_graph_container().await?;
main_graph_container
.check_specifiers(&self.queue.iter().cloned().collect::<Vec<_>>(), None)
.check_specifiers(
&self.queue.iter().cloned().collect::<Vec<_>>(),
Default::default(),
)
.await?;
let (concurrent_jobs, fail_fast) =