Closed phahulin closed 6 years ago
@fvictorio please advise how to resolve ci error:
FAIL src/components/App.test.js
● Test suite failed to run
Cannot find module '../contract-output' from 'App.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:179:17)
at Object.<anonymous> (src/components/App.js:9:49)
On my local machine where I have contract-output.json
it passes, but I'm not sure how to do it here, tried to use mocked version from test/server/_utils/mock-contract-output.json
but no luck.
Can we just tell travis to install and run ganache-cli and deploy the contract on test network?
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
web-dapp/src/components/App.js | 2 | 28 | 7.14% | ||
<!-- | Total: | 2 | 28 | 7.14% | --> |
Totals | |
---|---|
Change from base Build 120: | -0.6% |
Covered Lines: | 328 |
Relevant Lines: | 1023 |
What is it? (leave one option)
(Feature)
implementationWhat was the root cause of the problem originally / what feature was missing? If accidentally connected to wrong network, no warning is currently displayed, you can start using the DApp and receive various errors later.
How does this pull request solve it (in broad terms)? Check
code
property of account atContractOutput.address
(should be not empty). Getowner
of that contract (should be not empty).Does it close any open issues? Related to https://github.com/poanetwork/poa-popa/issues/52
Quick checklist