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

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/dbca55ec-d0eb-4585-8bc9-43b92e7691a9n%40googlegroups.com.

Reply via email to