I don't think socket is mocked correctly https://github.com/apache/couchdb-nano/issues/345 Making it impossible to use axios https://github.com/axios/axios/blob/main/lib/adapters/http.js#L395-L398 I know this is no longer maintained but just thought I'd document it