-
Notifications
You must be signed in to change notification settings - Fork 220
refactor: remove tsd integration
#392
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: remove tsd integration
#392
Conversation
4d2dff3 to
31cb5ae
Compare
These days, I imagine it's commonly understood how imports in TypeScript work.
b7b91a8 to
ec7bc53
Compare
mcataford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some testing thoughts. I'll spend a bit of time later looking at consolidating the ts/js tests so they are all captured by the runner & coverage reports, but in the meantime, the couple changes suggested should trim off some more-or-less dead code.
Thank you for following up on the tsd refactor! 🚀
|
One other thing: The point of having additional TypeScript tests was to ensure that the declarations worked just as advertised. I do realize that this could be overkill for a library that is still written in plain JavaScript. I rushed quickly into ensuring that the TypeScript side doesn't go to public with at least some quality assurance. So, in the spirit of keeping things lean, perhaps just dropping the
If we had to introduce TypeScript to tests here, some supplementary (NOT replacement!) tooling for it is in order, e.g. |
|
100% on |
mcataford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as-is -- the getAllCountries test can wait, I've got some changes that might fill those gaps.
|
🎉 This PR is included in version 8.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* refactor: remove tsd usage * build: remove tsd configuration * docs: remove tsd mention * docs: remove complicated TypeScript usage These days, I imagine it's commonly understood how imports in TypeScript work. * chore: allow JSX in TSX * chore: apply eslint config to all TypeScript files * chore: allow console logging in TypeScript tests * chore: use multiline JSX props in TSX * refactor: satisfy eslint and prettier in TypeScript tests * build: bump typescript to 4.4.3 * refactor: remove unnecesary constants test * test: fix getCountryData object equality assertion * test: transfer getCountryData TS tests to JS
This PR discards the usage of
tsdin tests because it has very limited use in this library at the moment.Resolves #389 (comment)
Description
tsdusage, dependency and mention.Screenshots (if appropriate):
Not required. This is a development workflow change.
Types of changes
Checklist: