Closed Jake-Gillberg closed 5 years ago
I have the same problem.
When I try to run the tests from a fresh react-box unbox, the SimpleStorage contract doesn't deploy and I get: Error: VM Exception while processing transaction: invalid opcode. (This is against testrpc)
Couldn't figure out why it wasn't working so I used a vanilla truffle install and combined it with an ejected create-react-app deployment (which is what it looks like the react box is is anyway).
I believe this is because it's trying to run the test.js
as a test. I found this issue which clarified: https://github.com/facebookincubator/create-react-app/issues/1319
Confirmed that version bump in PR fixes, npm install
required.
Just unboxed. Ran truffle test . testItStoresAValue fails - VM exception revert.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed, but can be re-opened if further comments indicate that the problem persists. Feel free to tag maintainers if no there is no reply to further comments.
npm run test
fails at scripts/test.js with the Error: