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

feature/add types checking #53

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Le-Caignec
Copy link

No description provided.

@Le-Caignec Le-Caignec self-assigned this Dec 27, 2024
Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.30%. Comparing base (53f6da9) to head (6793584).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #53   +/-   ##
========================================
  Coverage    99.30%   99.30%           
========================================
  Files            4        4           
  Lines          286      286           
  Branches        53       53           
========================================
  Hits           284      284           
  Misses           2        2           

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

@Le-Caignec Le-Caignec requested review from a team and removed request for a team January 2, 2025 10:32
tsconfig.json Outdated Show resolved Hide resolved
@gfournieriExec gfournieriExec mentioned this pull request Jan 2, 2025
2 tasks
@Le-Caignec Le-Caignec requested a review from a team January 10, 2025 12:21
@Le-Caignec Le-Caignec marked this pull request as ready for review January 10, 2025 12:21
Copy link
Author

Choose a reason for hiding this comment

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

fix type-checking issues

}
},
"include": ["config/**/*", "deploy/**/*", "scripts/**/*","test/**/*"],
"exclude": ["node_modules", "typechain-types"],
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no way to exclude libs/IexecLibOrders_v5.ts ?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, great questions! I spent a lot of time investigating this point. This is what I initially thought as well.

However, when you include a file, all imports from that file are also checked, along with the files imported by those child files, and so on recursively. Only files from typechain-types that are not imported by the included files will not be tested, which helps save time.

Normally, we don’t worry about nested files being tested because, as they are imported from a library, they should already be correct. However, in the case of libs/IexecLibOrders_v5.ts, there is clearly an issue. This might be due to the use of a very old Solidity compiler, but I’m not entirely sure.

Copy link
Contributor

@gfournieriExec gfournieriExec left a comment

Choose a reason for hiding this comment

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

Thanks :)

@@ -2,6 +2,7 @@

## vNEXT

- Add type-checking script
Copy link
Contributor

Choose a reason for hiding this comment

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

add the PR number :)

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.

2 participants