I'm trying to unitest a browser wasm/js application but it seems that the browser objects are missing. I assume that the testing package is using a "serverside" node API so I wonder how can I make go test use a real browser to run the tests. The test below fails
func TestTransform(t *testing.T) {
doc := js.Global().Get("document")
if !doc.Truthy() {
t.Fatalf("window.document not available?? wrong environment")
}
}
// $ GOOS=js GOARCH=wasm go test