Skip to content

Upgrade axios

Fanna Lautenbach requested to merge TMSS-2524 into master

A start w.r.t. https://support.astron.nl/jira/browse/TMSS-2524 for TMSS-2294

In order to use the useAxios hook, axios had to be updated. The newer axios version requires the use of ESM structures instead of the outdated common JS one so I changed that too (require -> import). In order to let jest still work with ESM, it uses babel transforms; in newer versions of react-scripts (no patching) this is already integrated so that is temporary.

Edited by Fanna Lautenbach

Merge request reports

Loading