Skip to content

Commit

Permalink
fix(core): Fix missing return of instantiated exposed classes
Browse files Browse the repository at this point in the history
Fixes #509
  • Loading branch information
Craig Roberts committed Jan 1, 2025
1 parent b4d3a7c commit e962e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/services/dependency-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class DependencyResolver {
}

if (typeof identifier === 'function' && this.classesToExpose.includes(identifier)) {
this.instantiateClass(identifier, metadata);
return this.instantiateClass(identifier, metadata);
}

const mock = this.mockFunction();
Expand Down

0 comments on commit e962e48

Please sign in to comment.