What is the best way to create a mock implementation of the WorkerGlobalScope object?

后端 未结 0 1806
生来不讨喜
生来不讨喜 2021-01-26 22:39

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

相关标签:
回答
  • 消灭零回复
提交回复
热议问题