GOOS=js GOARCH=wasm go test -exec "node $(go env GOROOT)/misc/wasm/wasm_exec
Because I'm in a node environment, the Global().Get("document") is empty.
I need to be able to populate that with the correct document object so I can test DOM manipulation. However, I am not sure how to do this. The document needs to be some specific object type and not a string representing the page, which I could achieve with .Set(string).
In javascript, I believe you can do: