Skip to content

Commit

Permalink
fixup! try fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Feb 5, 2025
1 parent 0bd1767 commit 1f6fb4e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/workspace/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,7 @@ mod test {
use deno_semver::VersionReq;
use serde_json::json;
use sys_traits::impls::InMemorySys;
use sys_traits::FsCanonicalize;
use url::Url;

use super::*;
Expand Down Expand Up @@ -1960,8 +1961,10 @@ mod test {
#[test]
fn resolve_sloppy_imports() {
let sys = InMemorySys::default();
let root_url =
url_from_file_path(&std::fs::canonicalize("/").unwrap()).unwrap();
let root_url = url_from_file_path(
&sys_traits::impls::RealSys.fs_canonicalize("/").unwrap(),
)
.unwrap();
let fs = CachedMetadataFs::new(sys.clone(), FsCacheOptions::Enabled);
let sloppy_imports_resolver =
SloppyImportsResolver::new(fs, SloppyImportsOptions::Enabled);
Expand Down

0 comments on commit 1f6fb4e

Please sign in to comment.