Test that React loads properly in a web worker

This should catch top-level uses of `window` and `document`, while lint rules catch `global`.