You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The prettier issue is caused by a redundant import in src/models/modelsRestApiClient.ts at line 14. This is also causing 4 test case failures.
The one test case is failing due to logic error in the connect method, which is inside src/index.ts
constconnect=asyncfunction(options: ConnectionOptions): Promise<void>{
...
constbaseURL=httpClient.defaults.baseURL||Constants.BASE_CLOUD_API_ENDPOINT;// Need to authenticate if we're using the Cloud API endpoints.if(isMindsDbCloudEndpoint(baseURL)||!isLocalEndpoint(baseURL)){
...
}};
test('connect should not authenticate for custom endpoint',async()=>{awaitMindsDB.connect({host: 'https://test-url.com',user: 'test-user',password: 'test-password',httpClient: mockedAxios,});expect(mockedAxios.post).not.toHaveBeenCalled();});
Prettier issue
and failing test cases
The text was updated successfully, but these errors were encountered: