|
|
|
@ -557,6 +557,9 @@ export const SolidityUnitTesting = (props: Record<string, any>) => { // eslint-d |
|
|
|
|
const compilerData = await testTab.call('compilerArtefacts', 'getCompilerAbstract', file) |
|
|
|
|
await testTab.call('compilerArtefacts', 'addResolvedContract', contractAddress, compilerData) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
await testTab.testRunner.init(await testTab.call('blockchain', 'web3VM')) |
|
|
|
|
await testTab.createTestLibs() |
|
|
|
|
testTab.testRunner.runTestSources( |
|
|
|
|
runningTests, |
|
|
|
|
compilerConfig, |
|
|
|
@ -568,7 +571,7 @@ export const SolidityUnitTesting = (props: Record<string, any>) => { // eslint-d |
|
|
|
|
callback(error) |
|
|
|
|
}, (url: string, cb: any) => { // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
|
|
|
return testTab.contentImport.resolveAndSave(url).then((result: any) => cb(null, result)).catch((error: Error) => cb(error.message)) // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
|
|
|
}, { testFilePath: testFilePath, web3: await testTab.call('blockchain', 'web3VM') } |
|
|
|
|
}, { testFilePath: testFilePath } |
|
|
|
|
) |
|
|
|
|
}).catch((error: Error) => { |
|
|
|
|
console.log(error) |
|
|
|
|