-
Notifications
You must be signed in to change notification settings - Fork 114
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
🧹 Enketo cleanup #1113
base: master
Are you sure you want to change the base?
🧹 Enketo cleanup #1113
Conversation
ensure that we account for mismatched timestamps
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1113 +/- ##
==========================================
+ Coverage 77.55% 79.39% +1.84%
==========================================
Files 28 28
Lines 1702 1699 -3
Branches 367 364 -3
==========================================
+ Hits 1320 1349 +29
+ Misses 382 350 -32
Flags with carried forward coverage won't be shown. Click here to find out more.
|
one of my main issues was that I needed to await where I was checking for what something resolves to, ".resolves.to..." was not enough I then fixed some errors that popped up once I was testing properly, and added a few more cases to some of the tests to cover the gaps
I have added some more tests, and now the testing coverage is up to about 98% of the lines for I think I've also addressed the comments from #1063 except for the couple of places where I was confused. You can see those review comments here: 1063 review |
To be more consistent with the rest of the codebase, as a rule of thumb we're having top-level functions use 'function' synax while one-liners or nested functions are arrow functions. Also, resetStoredConfig was renamed to _test_resetStoredConfig because that change is coming anyway in e-mission#1113 and this will make it easier to resolve merge conflicts
several of the tests are buggy, and so are commented out here
Status on this PR: I think I have managed to resolve the mess that the merge conflicts created, but I still have several tests failing (I commented them out for now, and the coverage on the file is around 80%):
Prettier is also failing, even though I am running prettier on the command line to try and clean up the code. |
The Promise is not rejecting because the |
The issue here is that there are no responses fetched, I'll have to check on the mocks to figure out why there are no responses, starting with looking at what might have changed since this test was running previously... |
Addressing comments from #1063 and the codecov report for affected files