There is a documented issue describing how axios and nock do not work well together. The workaround described in this comment works.
import axios from 'axios';
import httpAdapter from 'axios/lib/adapters/http';
import nock from 'nock';
axios.defaults.adapter = httpAdapter;