Closed mellodev closed 2 days ago
Overall looks fantastic! Only issue is the repetitive Sinon mocks in each test file. I suspect that can move to a before in prepare tests once and remove the after() part. Let's find a way to reduce that to avoid the duplication (and facilitate an easy way to swap firmware version payloads to test the app with).
Thank you!
Overall looks fantastic! Only issue is the repetitive Sinon mocks in each test file. I suspect that can move to a before in prepare tests once and remove the after() part. Let's find a way to reduce that to avoid the duplication (and facilitate an easy way to swap firmware version payloads to test the app with).
Thank you!
Good point, let me see if we can refactor that away!
@salbahra done, please take another look. Need to think on the firmware swap logic for a bit, can do that in a future PR
Changes Proposed
/test/tests
folder/test/tests/xx.js
test.js
in favor ofprepare_tests.js
Demo Video or Screenshots
https://github.com/user-attachments/assets/5fa3815b-0620-4f09-8fbc-65c27904a23d