<!-- * Please fill out this template with all the relevant information so we can understand what's going on and fix the issue. We appreciate bugs filed and PRs submitted! * Please make sure that you are familiar with and follow the Code of Conduct for this project (found in the CODE_OF_CONDUCT.md file). We'll probably ask you to submit the fix (after giving some direction). If you've never done that before, that's great! Check this free short video tutorial to learn how: https://kcd.im/pull-request If this is an issue with the documentation, please file an issue in the docs repo: https://github.com/testing-library/testing-library-docs --> - `@testing-library/dom` version: 7.29.5 - Testing Framework and version: mocha 8.3.0 <!-- are you using jest, mocha, puppeteer, ava? And what version? --> - DOM Environment: jsdom <!-- If you're using jsdom (the default with jest), what version? Otherwise, what browser and version are you running tests in? --> <!-- Keep in mind that if you're using a version of node we don't support that could also be an issue. Check our package.json "engines" file for the supported version. --> ### Relevant code or config: mocha unit test that was working before 7.29.5 ### What you did: updated @testing-library/dom to 7.29.5 ### What happened: unit test failed with `jest is not defined` error ### Reproduction: <!-- If possible, please create a repository that reproduces the issue with the minimal amount of code possible. Repository template: https://github.com/testing-library/dom-testing-library-template Or if you can, try to reproduce the issue in a Codesandbox. You can fork the one here: https://codesandbox.io/s/5z6x4r7n0p --> ### Problem description: ``` ReferenceError: jest is not defined at _runWithRealTimers (node_modules/.f/_/@testing-library/dom/7.29.5/@testing-library/dom/dist/helpers.js:42:5) ``` ### Suggested solution: <!-- It's ok if you don't have a suggested solution, but it really helps if you could do a little digging to come up with some suggestion of how to improve things. --> There's another use of `jest` a few lines above and it checks for it being `undefined` first, maybe need to do the same thing at the problem line.