https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40173 --- Comment #6 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to David Cook from comment #5)
(In reply to Jonathan Druart from comment #4)
No proper test plan here, it affects the low-level http-client so it's hard to make sure it will not introduce bugs.
I've been thinking about that for a little while now, and I think that we should start making Javascript unit tests. It likes "jest" is already included in "node_modules" for other dependencies. We might need to add "jest-fetch-mock" or "nock" but it would be a good way to test Javascript changes.
I think it would encourage us to write Javascript in more re-usable ways as well.
Anyway, food for thought.
I am actually adding test to http-client.js indirectly here, via t/cypress/integration/t/api-client.ts ;) The more we are going to use it in Cypress tests, the more it is going to be covered by tests. -- You are receiving this mail because: You are watching all bug changes.