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 11
11
12
12
jobs :
13
13
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 }}
15
21
steps :
16
22
- uses : actions/checkout@v4
17
23
Original file line number Diff line number Diff line change @@ -185,27 +185,37 @@ mod tests {
185
185
let manifest = load_pnp_manifest (
186
186
env:: current_dir ( )
187
187
. unwrap ( )
188
- . join ( "fixtures/global-cache/.pnp.cjs" ) ,
188
+ . join ( "fixtures" )
189
+ . join ( "global-cache" )
190
+ . join ( ".pnp.cjs" ) ,
189
191
)
190
192
. unwrap ( ) ;
191
193
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" ) ;
193
199
194
200
let result = resolve_to_unqualified_via_manifest (
195
201
& manifest,
196
202
"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 ( "" ) ,
200
208
) ;
201
209
202
210
match result {
203
211
Ok ( Resolution :: Resolved ( path, subpath) ) => {
204
212
assert_eq ! (
205
213
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( "" )
209
219
) ;
210
220
assert_eq ! ( subpath, None ) ;
211
221
}
You can’t perform that action at this time.
0 commit comments