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

Upgrade to babel 7 and resolve source map support failure in tests #510

Merged
merged 12 commits into from
Jan 26, 2019

Conversation

elenadimitrova
Copy link
Contributor

@elenadimitrova elenadimitrova commented Jan 22, 2019

In an attempt to coerce mocha to report back correct code line numbers on test failures (sample failing build reporting bad lines) we upgrad to babel@7 here. Although this hasn't solved the "line number" issue it is worth upgrading as it's not a straight forward change. Because .babelrc is no longer recognised as a global configuration, this had to be switched to babel.config.js see https://babeljs.io/docs/en/config-files#root-babelconfigjs-files and jestjs/jest#6053 (comment) for explanation.

Ultimately after much digging in historical builds and merged changes, we managed to pinpoint the bad commit that started causing the incorrect line number reports in test failures. To solve this issue we pinned the ganache-core version down to a working one. Logged trufflesuite/ganache#287 as a result.

Upgrading to node@10.12 here as well to match the dApp.

@elenadimitrova elenadimitrova added this to the Sprint 18 milestone Jan 22, 2019
@elenadimitrova elenadimitrova self-assigned this Jan 22, 2019
@elenadimitrova elenadimitrova changed the title Upgrade to babel 7 Upgrade to babel 7 and resolve source map support failure in tests Jan 25, 2019
@area area force-pushed the maintenance/317-test-refactoring branch from ed3ef57 to 8248a22 Compare January 25, 2019 14:49
minerAddress: STAKER1,
realProviderPort: REAL_PROVIDER_PORT,
useJsTree: true
});
const badClient = new MaliciousReputationMinerExtraRep(
{ loader: contractLoader, minerAddress: STAKER2, realProviderPort: REAL_PROVIDER_PORT },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the bad client get to use it too? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes of course.. I'll do that

@elenadimitrova elenadimitrova merged commit 2b58d6a into develop Jan 26, 2019
@elenadimitrova elenadimitrova deleted the maintenance/317-test-refactoring branch January 26, 2019 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants