Skip to content

Commit e19d94a

Browse files
committed
chore: add macOS and Windows CI testing
1 parent e51af28 commit e19d94a

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

src/lib_tests.rs

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -169,27 +169,37 @@ mod tests {
169169
let manifest = load_pnp_manifest(
170170
env::current_dir()
171171
.unwrap()
172-
.join("fixtures/global-cache/.pnp.cjs"),
172+
.join("fixtures")
173+
.join("global-cache")
174+
.join(".pnp.cjs"),
173175
)
174176
.unwrap();
175177

176-
let global_cache = dirs::home_dir().unwrap().join(".yarn/berry/cache");
178+
let global_cache = dirs::home_dir()
179+
.unwrap()
180+
.join(".yarn")
181+
.join("berry")
182+
.join("cache");
177183

178184
let result = resolve_to_unqualified_via_manifest(
179185
&manifest,
180186
"source-map",
181-
global_cache.join(
182-
"source-map-support-npm-0.5.21-09ca99e250-10c0.zip/node_modules/source-map-support/",
183-
),
187+
global_cache
188+
.join("source-map-support-npm-0.5.21-09ca99e250-10c0.zip")
189+
.join("node_modules")
190+
.join("source-map-support")
191+
.join(""),
184192
);
185193

186194
match result {
187195
Ok(Resolution::Resolved(path, subpath)) => {
188196
assert_eq!(
189197
path,
190-
global_cache.join(
191-
"source-map-npm-0.6.1-1a3621db16-10c0.zip/node_modules/source-map/"
192-
)
198+
global_cache
199+
.join("source-map-npm-0.6.1-1a3621db16-10c0.zip")
200+
.join("node_modules")
201+
.join("source-map")
202+
.join("")
193203
);
194204
assert_eq!(subpath, None);
195205
}

0 commit comments

Comments
 (0)