diff --git a/libs/remix-tests/src/testRunner.ts b/libs/remix-tests/src/testRunner.ts index ffc2cecde4..dca4a5f748 100644 --- a/libs/remix-tests/src/testRunner.ts +++ b/libs/remix-tests/src/testRunner.ts @@ -322,7 +322,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com assertMethod, returned: testEvent[3], expected: testEvent[4], - location + location, + web3 } if (hhLogs) resp.hhLogs = hhLogs testCallback(undefined, resp) @@ -373,7 +374,8 @@ export function runTest (testName: string, testObject: any, contractDetails: Com filename: testObject.filename, time: time, errMsg: err.message, - context: testName + context: testName, + web3 } testCallback(undefined, resp) failureNum += 1 diff --git a/libs/remix-tests/src/types.ts b/libs/remix-tests/src/types.ts index 649ee921df..b0d4145dbf 100644 --- a/libs/remix-tests/src/types.ts +++ b/libs/remix-tests/src/types.ts @@ -37,6 +37,7 @@ export interface TestResultInterface { expected?: string | number location?: string hhLogs?: [] + web3?: any } export interface TestCbInterface { (error: Error | null | undefined, result: TestResultInterface) : void;