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
Hello, We have installed the addon on our application to be able to mock all queries during testing, however when we make a mistake like missing a mock for a call the test runner freeze and in the console we can find the following error. This issue does not appear when we made no error in the test.
And in the network we can see that a call has been made
Our application is built around 3 API, so we have made 3 stores the first one is the default ember store, the 2 others extend the default ember store, and we set a specific adapter for those stores
importActiveModelAdapterfrom'active-model-adapter';import{injectasservice}from'@ember/service';importconfigfrom'sbo-connect-ui/config/environment';exportdefaultclassApplicationAdapterextendsActiveModelAdapter{host=config.api.connect;
@servicecurrentUser;ajax(url,method,hash){hash=hash||{};// hash may be undefinedhash.crossDomain=true;hash.xhrFields={withCredentials: true};hash.headers={'X-ActiveModelSerializers': '1',};returnsuper.ajax(url,method,hash);}}
The text was updated successfully, but these errors were encountered:
Hello, We have installed the addon on our application to be able to mock all queries during testing, however when we make a mistake like missing a mock for a call the test runner freeze and in the console we can find the following error. This issue does not appear when we made no error in the test.
And in the network we can see that a call has been made
Our application is built around 3 API, so we have made 3 stores the first one is the default ember store, the 2 others extend the default ember store, and we set a specific adapter for those stores
Here is an example of the implementation
The text was updated successfully, but these errors were encountered: