diff --git a/apps/remix-ide/src/app/tabs/test-tab.js b/apps/remix-ide/src/app/tabs/test-tab.js index c82a2bcc1d..20e2fdcb17 100644 --- a/apps/remix-ide/src/app/tabs/test-tab.js +++ b/apps/remix-ide/src/app/tabs/test-tab.js @@ -1,3 +1,8 @@ +/* global */ +import React from 'react' // eslint-disable-line +import ReactDOM from 'react-dom' +import { SolidityUnitTesting } from '@remix-ui/solidity-unit-testing' // eslint-disable-line + import { ViewPlugin } from '@remixproject/engine-web' import { removeMultipleSlashes, removeTrailingSlashes } from '../../lib/helper' import { canUseWorker, urlFromVersion } from '@remix-project/remix-solidity' @@ -94,6 +99,7 @@ module.exports = class TestTab extends ViewPlugin { await this.testRunner.init() await this.createTestLibs() this.updateRunAction() + this.renderComponent() } onDeactivation () { @@ -790,6 +796,16 @@ module.exports = class TestTab extends ViewPlugin { } render () { + return this.element + } + + renderComponent () { + ReactDOM.render( + + , this.element) + } + + render2 () { this.onActivationInternal() this.testsOutput = yo`