I am using jest as a test-runner. I recently encountered a bug in which I was indirectly referencing the Window object within a web worker and this was not picked up by my tests