diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 6633e50143d6bf..8da44c76ab3ef5 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -1320,7 +1320,7 @@ mod test { let specifier = ModuleSpecifier::parse("file:///file.ts").unwrap(); let err = import_map.resolve(input, &specifier).err().unwrap(); let err = ResolutionError::ResolverError { - error: Arc::new(ResolveError::Other(JsErrorBox::from_err(err))), + error: Arc::new(ResolveError::ImportMap(err)), specifier: input.to_string(), range: Range { specifier,