truffle-box / react-box

Truffle, Webpack and React boilerplate.
https://truffle-box.github.io/
MIT License
736 stars 251 forks source link

not all tests are passing out of the box #16

Closed Jake-Gillberg closed 5 years ago

Jake-Gillberg commented 7 years ago

npm run test fails at scripts/test.js with the Error:

Test suite failed to run
SyntaxError: Identifier 'jest' has already been declared
    at Runtime._execModule (node_modules/jest-runtime/build/index.js:442:13)
          at <anonymous>
erNail commented 7 years ago

I have the same problem.

skeebuzz commented 7 years ago

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)

skeebuzz commented 7 years ago

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).

ryanhagerty commented 7 years ago

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

palafoxernesto commented 6 years ago

This pull request solves the issue

jordanglassman commented 6 years ago

Confirmed that version bump in PR fixes, npm install required.

benjaminmbrown commented 6 years ago

Just unboxed. Ran truffle test . testItStoresAValue fails - VM exception revert. screen shot 2018-06-26 at 7 48 41 pm

stale[bot] commented 5 years ago

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.

stale[bot] commented 5 years ago

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.