File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -609,6 +609,10 @@ export class ModuleMocker {
609
609
metadata : MockMetadata < T , 'function' > ,
610
610
restore ?: ( ) => void ,
611
611
) : Mock < T > ;
612
+ private _makeComponent < T > (
613
+ metadata : MockMetadata < T > ,
614
+ restore ?: ( ) => void ,
615
+ ) : Record < string , any > ;
612
616
/* eslint-enable @typescript-eslint/unified-signatures */
613
617
private _makeComponent < T extends UnknownFunction > (
614
618
metadata : MockMetadata < T > ,
@@ -927,9 +931,6 @@ export class ModuleMocker {
927
931
Record < string , any > | Array < unknown > | RegExp | T | Mock | undefined
928
932
> ,
929
933
) : Mocked < T > {
930
- // metadata not compatible but it's the same type, maybe problem with
931
- // overloading of _makeComponent and not _generateMock?
932
- // @ts -expect-error - unsure why TSC complains here?
933
934
const mock = this . _makeComponent ( metadata ) ;
934
935
if ( metadata . refID != null ) {
935
936
refs [ metadata . refID ] = mock ;
You can’t perform that action at this time.
0 commit comments