Get rid of axios
dependency in the data_view_field_editor
tests.
#127965
Labels
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:small
Small Level of Effort
NeededFor:Operations
NeededFor:Security
technical debt
Improvement of the software architecture and operational architecture
triage_needed
Summary
In #111655 (comment) we're trying to upgrade
axios
package, but are blocked because of the followingaxios
usage in the tests (axios
just happened to have methods signature similar toHttpSetup
, but it's technically incorrect and quite fragile):The path forward is to switch tests to use
HttpSetup
mock instead ofaxios
+sinon
server mock. There is an example and reference implementation in theUpgrade Assistant
tests, see this pull request.If you have any questions or don't have enough capacity to update the tests, please ping me and I'll try to help out.
IMPORTANT: we have to backport
axios
upgrade to7.17.x
and hence updated tests should be backported to the7.17
branch as well.The text was updated successfully, but these errors were encountered: