@@ -66,22 +66,22 @@ describe("config loading", function () {
6666 } ) ;
6767
6868 it ( "should accept a relative path from the CWD" , function ( ) {
69- const config = loadConfigAndTasks ( { config : "config.js" } ) ;
69+ const { resolvedConfig } = loadConfigAndTasks ( { config : "config.js" } ) ;
7070
7171 assert . equal (
72- config . paths . configFile ,
72+ resolvedConfig . paths . configFile ,
7373 path . normalize ( path . join ( process . cwd ( ) , "config.js" ) )
7474 ) ;
7575 } ) ;
7676
7777 it ( "should accept an absolute path" , async function ( ) {
7878 const fixtureDir = await getFixtureProjectPath ( "custom-config-file" ) ;
79- const config = loadConfigAndTasks ( {
79+ const { resolvedConfig } = loadConfigAndTasks ( {
8080 config : path . join ( fixtureDir , "config.js" ) ,
8181 } ) ;
8282
8383 assert . equal (
84- config . paths . configFile ,
84+ resolvedConfig . paths . configFile ,
8585 path . normalize ( path . join ( process . cwd ( ) , "config.js" ) )
8686 ) ;
8787 } ) ;
@@ -391,7 +391,7 @@ Hardhat plugin instead.`
391391 } ) ;
392392
393393 it ( "should emit a warning if there's no configured solidity" , function ( ) {
394- const config = loadConfigAndTasks (
394+ const { resolvedConfig } = loadConfigAndTasks (
395395 {
396396 config : "config-without-solidity.js" ,
397397 } ,
@@ -403,8 +403,11 @@ Hardhat plugin instead.`
403403 consoleWarnStub . args [ 0 ] [ 0 ] ,
404404 "Solidity compiler is not configured"
405405 ) ;
406- assert . equal ( config . solidity . compilers . length , 1 ) ;
407- assert . equal ( config . solidity . compilers [ 0 ] . version , DEFAULT_SOLC_VERSION ) ;
406+ assert . equal ( resolvedConfig . solidity . compilers . length , 1 ) ;
407+ assert . equal (
408+ resolvedConfig . solidity . compilers [ 0 ] . version ,
409+ DEFAULT_SOLC_VERSION
410+ ) ;
408411 } ) ;
409412
410413 it ( "should emit a warning if the solc version is too new" , function ( ) {
0 commit comments