问题描述
我使用的肥皂版本为0.26.0,一切运行正常。然后,由于升级到0.27.0+,我遇到了typedi问题。
我正在这样测试应用程序
beforeAll(() => {
soapClientStub = {
LoginAsync: sinon.stub(),addUserAsync: sinon.stub(),enableuserAsync: sinon.stub(),addUserToSpaceAsync: sinon.stub(),addUserToGroupInSpaceAsync: sinon.stub(),setDashboardViewAsync: sinon.stub(),setDenyAddspaceAsync: sinon.stub(),addHttpHeader: sinon.stub(),lastResponseHeaders: [],setEndpoint: sinon.stub(),};
Container.set(soap.Client,soapClientStub);
client = Container.get(soap.Client);
});
现在,我无法从容器中获得肥皂客户端。 typedi抛出错误,说
serviceNotFoundError: Cannot determine a class of the requesting service
我正在使用Typedi版本0.8.0
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)