I am writing some tests for a game in React Native, and it seems the multiplayer testing does not work with debug enabled. I'm not using debug for anything in tests, but it me a while to figure it out. Maybe it should be on docs that debug is incompatible in tests?
I am writing some tests for a game in React Native, and it seems the multiplayer testing does not work with debug enabled. I'm not using debug for anything in tests, but it me a while to figure it out. Maybe it should be on docs that debug is incompatible in tests?
It fails because of this line:
https://github.com/nicolodavis/boardgame.io/blob/79ebcc3e2bb0c08c28dff61615f56e8b297b8baf/src/client/client.js#L282
Error: document is not defined
Here's a test case thats shows the exception being thrown