Jest failure (custom_metrics_form_fields_spec.js): TypeError: _axios_utils.default.post.mockRestore is not a function
FAIL ee/spec/frontend/custom_metrics/components/custom_metrics_form_fields_spec.js
● custom metrics form fields component › checks form validity
TypeError: _axios_utils.default.post.mockRestore is not a function
41 |
42 | beforeEach(() => {
> 43 | axios.post.mockRestore();
| ^
44 | axios.post.mockResolvedValue(validQueryResponse);
45 | });
46 |
at Object.mockRestore (ee/spec/frontend/custom_metrics/components/custom_metrics_form_fields_spec.js:43:16)
(https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/253748492)