Search code examples
javascriptjestjsnestjs

Error after upgrade of jest in NestJS project


guys! I had a NestJS project where for unit-test is used [email protected].* after upgrade to 29.5.* my test are failing with Connot read proprietes of undefined '*request'. I was looking for breaking changes and I dont found anything, If somebody find best solution for this issue please share :) Thank you.


Solution

  • Hey guys I find a solution, but idk if it is better one: I used mockRestore, but when remove it. It works fine.