File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -169,27 +169,37 @@ mod tests {
169
169
let manifest = load_pnp_manifest (
170
170
env:: current_dir ( )
171
171
. unwrap ( )
172
- . join ( "fixtures/global-cache/.pnp.cjs" ) ,
172
+ . join ( "fixtures" )
173
+ . join ( "global-cache" )
174
+ . join ( ".pnp.cjs" ) ,
173
175
)
174
176
. unwrap ( ) ;
175
177
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" ) ;
177
183
178
184
let result = resolve_to_unqualified_via_manifest (
179
185
& manifest,
180
186
"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 ( "" ) ,
184
192
) ;
185
193
186
194
match result {
187
195
Ok ( Resolution :: Resolved ( path, subpath) ) => {
188
196
assert_eq ! (
189
197
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( "" )
193
203
) ;
194
204
assert_eq ! ( subpath, None ) ;
195
205
}
You can’t perform that action at this time.
0 commit comments