@@ -150,14 +150,14 @@ forgetest_init!(can_override_config, |prj, cmd| {
150
150
151
151
let profile = Config :: load_with_root( prj. root( ) ) ;
152
152
// ensure that the auto-generated internal remapping for forge-std's ds-test exists
153
- assert_eq!( profile. remappings. len( ) , 2 ) ;
154
- assert_eq!( "ds-test /=lib/forge-std/lib/ds-test /src/" , profile. remappings[ 0 ] . to_string( ) ) ;
153
+ assert_eq!( profile. remappings. len( ) , 1 ) ;
154
+ assert_eq!( "forge-std /=lib/forge-std/src/" , profile. remappings[ 0 ] . to_string( ) ) ;
155
155
156
156
// ensure remappings contain test
157
- assert_eq!( "ds-test /=lib/forge-std/lib/ds-test /src/" , profile. remappings[ 0 ] . to_string( ) ) ;
157
+ assert_eq!( "forge-std /=lib/forge-std/src/" , profile. remappings[ 0 ] . to_string( ) ) ;
158
158
// the loaded config has resolved, absolute paths
159
159
assert_eq!(
160
- "ds-test /=lib/forge-std/lib/ds-test /src/" ,
160
+ "forge-std /=lib/forge-std/src/" ,
161
161
Remapping :: from( profile. remappings[ 0 ] . clone( ) ) . to_string( )
162
162
) ;
163
163
@@ -221,12 +221,12 @@ forgetest_init!(can_parse_remappings_correctly, |prj, cmd| {
221
221
222
222
let profile = Config :: load_with_root( prj. root( ) ) ;
223
223
// ensure that the auto-generated internal remapping for forge-std's ds-test exists
224
- assert_eq!( profile. remappings. len( ) , 2 ) ;
225
- let [ r , _ ] = & profile. remappings[ .. ] else { unreachable! ( ) } ;
226
- assert_eq!( "ds-test /=lib/forge-std/lib/ds-test /src/" , r. to_string( ) ) ;
224
+ assert_eq!( profile. remappings. len( ) , 1 ) ;
225
+ let r = & profile. remappings[ 0 ] ;
226
+ assert_eq!( "forge-std /=lib/forge-std/src/" , r. to_string( ) ) ;
227
227
228
228
// the loaded config has resolved, absolute paths
229
- assert_eq!( "ds-test /=lib/forge-std/lib/ds-test /src/" , Remapping :: from( r. clone( ) ) . to_string( ) ) ;
229
+ assert_eq!( "forge-std /=lib/forge-std/src/" , Remapping :: from( r. clone( ) ) . to_string( ) ) ;
230
230
231
231
cmd. arg( "config" ) ;
232
232
let expected = profile. to_string_pretty( ) . unwrap( ) ;
@@ -432,11 +432,11 @@ forgetest!(can_set_gas_price, |prj, cmd| {
432
432
forgetest_init ! ( can_detect_lib_foundry_toml, |prj, cmd| {
433
433
let config = cmd. config( ) ;
434
434
let remappings = config. remappings. iter( ) . cloned( ) . map( Remapping :: from) . collect:: <Vec <_>>( ) ;
435
+ dbg!( & remappings) ;
435
436
pretty_assertions:: assert_eq!(
436
437
remappings,
437
438
vec![
438
439
// global
439
- "ds-test/=lib/forge-std/lib/ds-test/src/" . parse( ) . unwrap( ) ,
440
440
"forge-std/=lib/forge-std/src/" . parse( ) . unwrap( ) ,
441
441
]
442
442
) ;
@@ -455,7 +455,6 @@ forgetest_init!(can_detect_lib_foundry_toml, |prj, cmd| {
455
455
remappings,
456
456
vec![
457
457
// default
458
- "ds-test/=lib/forge-std/lib/ds-test/src/" . parse( ) . unwrap( ) ,
459
458
"forge-std/=lib/forge-std/src/" . parse( ) . unwrap( ) ,
460
459
// remapping is local to the lib
461
460
"nested-lib/=lib/nested-lib/src/" . parse( ) . unwrap( ) ,
@@ -481,7 +480,6 @@ forgetest_init!(can_detect_lib_foundry_toml, |prj, cmd| {
481
480
// local to the lib
482
481
"another-lib/=lib/nested-lib/lib/another-lib/src/" . parse( ) . unwrap( ) ,
483
482
// global
484
- "ds-test/=lib/forge-std/lib/ds-test/src/" . parse( ) . unwrap( ) ,
485
483
"forge-std/=lib/forge-std/src/" . parse( ) . unwrap( ) ,
486
484
"nested-lib/=lib/nested-lib/src/" . parse( ) . unwrap( ) ,
487
485
// remappings local to the lib
@@ -500,7 +498,6 @@ forgetest_init!(can_detect_lib_foundry_toml, |prj, cmd| {
500
498
// local to the lib
501
499
"another-lib/=lib/nested-lib/lib/another-lib/custom-source-dir/" . parse( ) . unwrap( ) ,
502
500
// global
503
- "ds-test/=lib/forge-std/lib/ds-test/src/" . parse( ) . unwrap( ) ,
504
501
"forge-std/=lib/forge-std/src/" . parse( ) . unwrap( ) ,
505
502
"nested-lib/=lib/nested-lib/src/" . parse( ) . unwrap( ) ,
506
503
// remappings local to the lib
@@ -529,7 +526,6 @@ forgetest_init!(can_prioritise_closer_lib_remappings, |prj, cmd| {
529
526
remappings,
530
527
vec![
531
528
"dep1/=lib/dep1/src/" . parse( ) . unwrap( ) ,
532
- "ds-test/=lib/forge-std/lib/ds-test/src/" . parse( ) . unwrap( ) ,
533
529
"forge-std/=lib/forge-std/src/" . parse( ) . unwrap( )
534
530
]
535
531
) ;
0 commit comments