Jest globals bug This is a reproduction of #2048 in Jest. Steps to reproduce: clone repo yarn (or npm install) npm run node will run the test.js file with node npm run jest will run the index.test.js file with jest