-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Web3 utils full test coverage for types #2084
Conversation
Abstracted everything out into single tests.. much cleaner 👍 |
@nivida it be good to strongly type these last 2 objects before we merge in _jsonInterfaceMethodToString - json parameter ? Can you let me know what object you expect for those? |
@joshstevens19 |
can i remove the method for Ok will add |
@joshstevens19 Yes you can remove this method thanks! |
|
Ou sorry. Yes, then this is the last place this method is used. |
ok i will remove the export so we do not need it in the types 👍 |
packages/web3-utils/types/tests/json-interface-method-to-string-tests.ts
Outdated
Show resolved
Hide resolved
Don't forget to resolve the package.json conflicts. :-) |
everything should be resolved now 👍 |
Great! Thanks Josh! |
wow all your comments i fixed but i rebased and it must of killed all of these grrrrrrr i will sort again when i get a second 👍 |
@nivida so i have fixed those comments again - bloody git! had to do some git black magic to find it .. should be good now 😄 |
I'll test it tomorrow and when all tests run as expected I'll merge it. |
Hi @nivida
I have gone through the utils repo and got the
dtslint
within all the typings. We have full test coverage on all of the types now (look at `test.ts file, it's to big so you have to expand it ha ha).I have added this in the
npm test
step as well which will run beforejest
. We have everything nearly strongly typed so if you could supply me with the interface of the last few objects below we can have a fully supported ts for web3-utils :)Have a look through - this is going to be the foundations for all testing of all types in all packages.
Oh and i spotted some docs incorrect while doing it so i corrected that as well.
Cheers