Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Refactor) Add basic test #354

Merged
merged 3 commits into from
Nov 9, 2017
Merged

(Refactor) Add basic test #354

merged 3 commits into from
Nov 9, 2017

Conversation

fvictorio
Copy link
Contributor

I tried to add a test in another branch I'm working on and I found out that tests that depend (directly or indirectly) on web3 would fail. This happens because the version of react-scripts we are using has an issue with files with .node extension (web3 depends on scrypt, that has a dependency of this type). See the last bug fix here for more information.

I added some basic tests to demonstrate the problem. If you checkout this branch and run npm run test:dapp, you'll see the problem. Upgrading the dependencies (npm install) should fix that issue.

The last version of react-scripts is 1.0.17 and there seems to be no breaking changes, but I just upgraded to 1.0.11 to avoid unnecessary risks.

This is necessary to make tests work. Otherwise, there is an issue
with a dependency requiring a '.node' file, that is not supported
in the version of jest-resolve that react-scripts@1.0.10 uses.
@mark-antony1
Copy link
Contributor

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants