fix(core): add missing return for instantiated exposed classes#529
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #529 +/- ##
==========================================
+ Coverage 89.76% 92.52% +2.76%
==========================================
Files 6 26 +20
Lines 127 589 +462
Branches 25 99 +74
==========================================
+ Hits 114 545 +431
- Misses 10 35 +25
- Partials 3 9 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
@craig0990 I have fixed the issue :) |
|
Thanks @omermorad - seeing it failing in E2E did get me past the "what am I missing" stage; although I'll admit that locally I hijacked the It looks like a missing |
@craig0990 I have some reservations regarding the other e2e tests, as we're focusing on core functionality rather than aspects related to dependency injection or mocking libraries, maybe we should just cover in nestjs-jest |
0961941 to
59e6434
Compare
562a960 to
5f7b0da
Compare
|
@craig0990 There appears to be a problem with the commits due to an error I made with the next branch. Could you please open a new PR? |
|
@omermorad I can rebase it, |
59e6434 to
e0d8798
Compare
|
@craig0990 Awesome! LGTM! :) |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Return early when instantiating a class to be exposed; which prevents falling through to the
mockFunctioncall.What is the current behavior?
Issue Number: #509
What is the new behavior?
Does this PR introduce a breaking change?
Other information