File tree Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Expand file tree Collapse file tree 2 files changed +25
-9
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14- runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ os :
17+ - ubuntu-latest
18+ - macos-latest
19+ - windows-latest
20+ runs-on : ${{ matrix.os }}
1521 steps :
1622 - uses : actions/checkout@v4
1723
Original file line number Diff line number Diff line change @@ -185,27 +185,37 @@ mod tests {
185185 let manifest = load_pnp_manifest (
186186 env:: current_dir ( )
187187 . unwrap ( )
188- . join ( "fixtures/global-cache/.pnp.cjs" ) ,
188+ . join ( "fixtures" )
189+ . join ( "global-cache" )
190+ . join ( ".pnp.cjs" ) ,
189191 )
190192 . unwrap ( ) ;
191193
192- let global_cache = dirs:: home_dir ( ) . unwrap ( ) . join ( ".yarn/berry/cache" ) ;
194+ let global_cache = dirs:: home_dir ( )
195+ . unwrap ( )
196+ . join ( ".yarn" )
197+ . join ( "berry" )
198+ . join ( "cache" ) ;
193199
194200 let result = resolve_to_unqualified_via_manifest (
195201 & manifest,
196202 "source-map" ,
197- global_cache. join (
198- "source-map-support-npm-0.5.21-09ca99e250-10c0.zip/node_modules/source-map-support/" ,
199- ) ,
203+ global_cache
204+ . join ( "source-map-support-npm-0.5.21-09ca99e250-10c0.zip" )
205+ . join ( "node_modules" )
206+ . join ( "source-map-support" )
207+ . join ( "" ) ,
200208 ) ;
201209
202210 match result {
203211 Ok ( Resolution :: Resolved ( path, subpath) ) => {
204212 assert_eq ! (
205213 path,
206- global_cache. join(
207- "source-map-npm-0.6.1-1a3621db16-10c0.zip/node_modules/source-map/"
208- )
214+ global_cache
215+ . join( "source-map-npm-0.6.1-1a3621db16-10c0.zip" )
216+ . join( "node_modules" )
217+ . join( "source-map" )
218+ . join( "" )
209219 ) ;
210220 assert_eq ! ( subpath, None ) ;
211221 }
You can’t perform that action at this time.
0 commit comments