Repository navigation
fix: type createTableQuery and overhaul unit test suite - #15526
Conversation
evanrittenhouse
left a comment
There was a problem hiding this comment.
Looks good for the most part, only blocker for me would be changing the test names
ephys
left a comment
There was a problem hiding this comment.
A lot of these tests seems to be duplicates of each-other, or testing the same thing
It makes it look like we're thoroughly testing that API but in reality they're all the same test
I think it's better to remove the duplicates and add specific tests with explanations when we encounter specific issues
You're absolutely correct. What I've done for this PR is just combining all test cases in this file and setting the expectations for all dialects. This test suite should be overhauled so all those duplicates are removed, as per my comment at the top of the file; I was planning that it would be done in future PRs but if you want I could also work on it in this PR. |
|
This is how I see view the different notes: These change the behavior of the method and make sense to do in the TS PR:
These are things added by this PR so should be ready in this PR:
These don't really make sense to do in another PR IMO, it seems closely related to the goal of this PR:
I don't think you need to keep this TODO. If we integration test each one of them, there is not real reason to unit test them. We should only test a few of them and the rest can be unit tests. It seems to already be what we're doing. If we're missing a specific test, we can instead add a TODO about it in the existing createTable integration suite
|
|
I've overhauled the test suite so most TODOs are done. Next step is working on #15533 and after that I will check these and the |
Comments have been resolved and test suite overhauled
Pull Request Checklist
Description Of Change
This PR is smaller than the others; this time I just unified the tests, added missing expectations and quickly typed
createTableQuery. Future PRs can migratecreateTableQueryto TypeScript and clean up the test suite.Todos