for me the answer was to erase the type: "module" from the package.json
type: "module"
someone in the team add this line and broke the tests :(