The tl;dr is that I have a module which works fine locally on my app, but because of reasons - the import causes the test to break. One of the commenters on that pull request suggested not importing the module if it was running in the test environment. My question is - how can you check that within a Jest app - and not import if you're in that environment (and replace the library with a dummy).
Thank you!