Correctly removes mocha entries from stack

Broke AFAIK after move of mocha to peerdependencies. Makes for much shorter and relevant callstacks.