NestJs with Jest – Cannot use spyOn on a primitive value
I am getting the below error while writing test cases:
Cannot use spyOn on a primitive value; undefined given
for line jest.spyOn(pipe.i18n,'getMessage').mockImplementation(()=>'Must be a valid number and greater than 0 (no decimals)' as never)