Open nicosampler opened 8 years ago
Hey, i made a PR based on 1.0.8 version, when push the PR to master, i see that the current version is 1.0.11, npm is providing an older version. later i will try to solve this problem in the latest version.
I published 1.0.11
to npm. You should be able to update to it through npm update quickmock
.
@nicosampler has this issue been resolved by that update above?
@tennisgent, no, I have resolved this problem in this PR #14, but was pushed over the previous version. After that, i couldn't apply this changes on the new version.
Hello, I want to report an issue related to define services using #ES6 clasess. Sometimes when the service have injections defined by the user, the real service is provided instead mock. this bug can be solved using
injector.instantiate(providerElement, mocks);
instead thisinjector.get(opts.providerName);
Using this way, you can specify the annotations which we have from
mockProvider()
functionI did this PR #14 to fix the problem.
Thanks, Nico