I am facing the same error to implement new tests using Node 20 and the latest Mocha version.
It was working in other Node version? Which one?