You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We add Portis support to our Dapp. The below code is how we have imported that:
import Portis from '@portis/web3';
import config from '../configuration';
const PORTIS_DAPP_ID = 'xxxxxxxxxxxxxxx';
const NETWORK_CONFIG = { nodeUrl: config.foreignNodeConnection, nodeId: config.foreignNetworkId };
const portis = new Portis(PORTIS_DAPP_ID, NETWORK_CONFIG);
After adding this, out jest tests fail. The errors are the same on all tests:
FAIL src/models/User.test.js
● Test suite failed to run
TypeError: web3_provider_engine_1.default is not a constructor
at Portis.Object.<anonymous>.Portis._initProvider (node_modules/@portis/web3/lib/index.js:266:22)
at new Portis (node_modules/@portis/web3/lib/index.js:81:30)
....
The text was updated successfully, but these errors were encountered:
We add Portis support to our Dapp. The below code is how we have imported that:
After adding this, out jest tests fail. The errors are the same on all tests:
The text was updated successfully, but these errors were encountered: