Skip to content

Remove smock from IexecPocoBoost unit tests - #148

Merged
james-toussaint merged 6 commits into
developfrom
feature/remove-smock-from-boost-unit-tests
Oct 24, 2024
Merged

Remove smock from IexecPocoBoost unit tests#148
james-toussaint merged 6 commits into
developfrom
feature/remove-smock-from-boost-unit-tests

Conversation

@james-toussaint

Copy link
Copy Markdown
Contributor

No description provided.

@james-toussaint james-toussaint self-assigned this Oct 23, 2024
@james-toussaint
james-toussaint marked this pull request as ready for review October 23, 2024 13:32
Comment thread test/byContract/IexecPocoBoost/IexecPocoBoostDelegate.test.ts Outdated
@codecov

codecov Bot commented Oct 23, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.58%. Comparing base (c738dbd) to head (6797637).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #148   +/-   ##
========================================
  Coverage    84.58%   84.58%           
========================================
  Files           35       35           
  Lines         1077     1077           
  Branches       221      201   -20     
========================================
  Hits           911      911           
  Misses         166      166           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread test/byContract/IexecPocoBoost/IexecPocoBoostDelegate.test.ts Outdated
Comment thread test/byContract/IexecPocoBoost/IexecPocoBoostDelegate.test.ts
Comment thread test/byContract/IexecPocoBoost/IexecPocoBoostDelegate.test.ts Outdated
Comment thread contracts/tools/testing/ERC734Mock.sol
async function createFakeErc734IdentityInstance() {
return await smock.fake<IERC734>(IERC734__factory);
}
/**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note for the future:
I think we can declare variables such as proxyAddress, iexecPocoBoostInstance, iexecMaintenanceAsAdmin, ... outside of the describe block to put utility functions outside and keep only init and test functions inside describe.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See Declare variables before top describe.
Yes, not sure which form we generally prefer, but at least this form reduces diff a bit in this context 👍 !

@james-toussaint
james-toussaint merged commit 304b595 into develop Oct 24, 2024
@james-toussaint
james-toussaint deleted the feature/remove-smock-from-boost-unit-tests branch October 24, 2024 14:12
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