@@ -5,9 +5,10 @@ let logger: ILogger;
55
66export interface TransformerLogger {
77 circularGenericNotSupported ( nodeName : string ) : void ;
8- unexpectedCreateMock ( mockFileName : string , expectedFileName : string ) : void ;
8+ overloadNonLiteralParameterNotSupported ( type : string ) : void ;
99 typeNotSupported ( type : string ) : void ;
1010 typeOfFunctionCallNotFound ( node : string ) : void ;
11+ unexpectedCreateMock ( mockFileName : string , expectedFileName : string ) : void ;
1112}
1213
1314export function TransformerLogger ( ) : TransformerLogger {
@@ -20,16 +21,19 @@ export function TransformerLogger(): TransformerLogger {
2021 'The generated mock will be incomplete.' ,
2122 ) ;
2223 } ,
23- unexpectedCreateMock ( mockFileName : string , expectedFileName : string ) : void {
24- logger . warning ( `I\'ve found a mock creator but it comes from a different folder
25- found: ${ mockFileName }
26- expected: ${ expectedFileName } ` ) ;
24+ overloadNonLiteralParameterNotSupported ( type : string ) : void {
25+ logger . warning ( `Non-literal \`${ type } ' is not supported - falling back to \`instanceof Object' in the conditional typing` ) ;
2726 } ,
2827 typeNotSupported ( type : string ) : void {
2928 logger . warning ( `Not supported type: ${ type } - it will convert to null` ) ;
3029 } ,
3130 typeOfFunctionCallNotFound ( node : string ) : void {
3231 logger . warning ( `Cannot find type of function call: ${ node } - it will convert to null` ) ;
3332 } ,
33+ unexpectedCreateMock ( mockFileName : string , expectedFileName : string ) : void {
34+ logger . warning ( `I\'ve found a mock creator but it comes from a different folder
35+ found: ${ mockFileName }
36+ expected: ${ expectedFileName } ` ) ;
37+ } ,
3438 } ;
3539}
0 commit comments