WEB-13952 Mocha test runner unfriendly to mocked fs module